https://github.com/bramp/flutter_gen_linter
A set of simple linter rules to encourage the use of flutter_gen
https://github.com/bramp/flutter_gen_linter
Last synced: over 1 year ago
JSON representation
A set of simple linter rules to encourage the use of flutter_gen
- Host: GitHub
- URL: https://github.com/bramp/flutter_gen_linter
- Owner: bramp
- License: bsd-3-clause
- Created: 2023-08-08T02:30:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-08T03:09:20.000Z (almost 3 years ago)
- Last Synced: 2025-03-25T18:51:07.924Z (over 1 year ago)
- Language: Dart
- Size: 98.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
A set of simple linter rules to encourage the use of flutter_gen.
## Features
While using [flutter_gen](https://pub.dev/packages/flutter_gen) I wanted to ensure it was used consistently thoughout the project, so this is a set of [custom_lint](https://pub.dev/packages/custom_lint) rules to ensure that.
## Getting started
In your `pubspec.yaml` add:
```
dev_dependencies:
custom_lint: ^0.5.0
flutter_gen_linter: ^1.0.0
```
and create a `analysis_options.yaml` and add:
```
analyzer:
plugins:
- custom_lint
```
Now your IDE should show the lint warnings, like so:

or you can manually run them from the command line:
```shell
$ dart run custom_lint
lib/your_file.dart:61:18 • AssetImage or Image.asset should not be used directly instead use Assets.images... • asset_image • INFO
```