-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
I'm working on a flutter monorepo project and I faced many issues when I decided to put all the translation files in a separate package (I use intl). I tought I just need to export package:flutter_gen/gen_l10n/app_localizations.dart so that when I import the translation package I could just use all the translations. I tought it was a common use-case.
But that doesn't work! I think it is counter-intuitive. I would expect that if I export a genereated file and then I import it from another package it works (just like any other non generated file). To me it seems a major blocker for large projects. Are there any other ways to create a translation package?
Steps to Reproduce
- Clone the example repo:
git clone https://github.com/ferraridamiano/fluttergen_export_issue - Take a look to the errors reported by the IDE
Expected results:
Same behaviour for generated and non-generated files
Actual results:
Different behaviour for generated and non-generated files