very_good_cli
very_good_cli copied to clipboard
fix: out of the box does not work, clash between intl and flutter:gen any
Description Clash between intl and flutter_gen, imports do not work for app localizations see https://stackoverflow.com/questions/64574620/target-of-uri-doesnt-exist-packageflutter-gen-gen-l10n-gallery-localizations "That was my issue also. Basically the intl package generates localisation code under a fake flutter_gen package, but there is also a real flutter_gen package on pub.dev. If you install the latter, it will take priority and hide the generated localisation code, so it will appear to not exist. – rjh CommentedAug 28, 2022 at 14:04 "
Steps To Reproduce
- very_good create
- flutter run
Expected Behavior project compiles and runs, no dart analysis errors
** fixed by** remove flutter-gen: any from the pubspec.yaml, flutter pub.geet 5-aug-2024 stable channel, recent/latest cli