flutter_sheet_localization
flutter_sheet_localization copied to clipboard
Undefined name 'AppLocalizations'.
supportedLocales: AppLocalizations.languages.keys.toList()
flutter_sheet_localization 5.1.0
You can use it like supportedLocales: localizedLabels.keys
. It returns list of locales. localizedLabels
is from generated file.
I got the same problem after upgrading to version 5.1.1
The AppLocalization
class is not generated. So I can't use AppLocalizations.of(context)
. And localizedLabels
is just the Map with the labels.
I guess the docs are not updated? How do we get the labels with the current locale?
AppLocalizations.of(context)
Hi @stepanzalis , and how to replace AppLocalizations.of(context)?