flutter_gen_linter 1.0.0 flutter_gen_linter: ^1.0.0 copied to clipboard
A set of simple linter rules to encourage the use of flutter_gen.
A set of simple linter rules to encourage the use of flutter_gen.
Features #
While using flutter_gen I wanted to ensure it was used consistently thoughout the project, so this is a set of custom_lint rules to ensure that.
Getting started #
In your `pubspec.yaml`` add:
dev_dependencies:
custom_lint: ^0.5.0
flutter_gen_runner_lint: ^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:
$ 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