You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When migrating Image.asset(...) to Assets.images I wanted to ensure all current and future uses were migrated. To avoid regressions, and ensure all contributors to the code base used the same style.
Is there an existing issue for this?
Describe the problem
When migrating
Image.asset(...)
toAssets.images
I wanted to ensure all current and future uses were migrated. To avoid regressions, and ensure all contributors to the code base used the same style.Describe the solution
Having a lint rule would be useful, as such I created one at https://pub.dev/packages/flutter_gen_linter
In your `pubspec.yaml`` add:
and create a analysis_options.yaml and add:
Additional context
Happy for https://pub.dev/packages/flutter_gen_linter to fold into this main project. This was my first Dart Package so I in part wrote it to learn.
Code of Conduct
The text was updated successfully, but these errors were encountered: