Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined name 'AppLocalizations'. #48

Open
kayson91 opened this issue May 5, 2021 · 3 comments
Open

Undefined name 'AppLocalizations'. #48

kayson91 opened this issue May 5, 2021 · 3 comments

Comments

@kayson91
Copy link

kayson91 commented May 5, 2021

supportedLocales: AppLocalizations.languages.keys.toList()

flutter_sheet_localization 5.1.0

@stepanzalis
Copy link

stepanzalis commented May 13, 2021

You can use it like supportedLocales: localizedLabels.keys. It returns list of locales. localizedLabels is from generated file.

@sjoenk
Copy link

sjoenk commented Oct 4, 2021

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?

@imagic85
Copy link

imagic85 commented May 1, 2023

AppLocalizations.of(context)

Hi @stepanzalis , and how to replace AppLocalizations.of(context)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants