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

Issue with updating the app language accross the app from the child widget to ancestor widget. #112

Open
akshayindia opened this issue Jun 8, 2022 · 3 comments

Comments

@akshayindia
Copy link

akshayindia commented Jun 8, 2022

Hi Team, I'm facing the issue with updating my app language which includes multiple screens. At the time I change my locale from the parent screen it changes but from the child screen, it didn't work.

In simple terms. Consider I've changed the locale in the homeScreen & moving to a different route from homeScreen to Screen1 via Navigator. of(context).pushNamed(Screen1.routeName).

Then if put the logic in screen2 then the app language does not change.

I've attested the small code which you can clone it to view the issue.

The small reproducible code is https://github.com/akshayindia/Flutter-Internalization

@akshayindia akshayindia changed the title Issue with updating the app language accross the app > Work only in widget tree. Issue with updating the app language accross the app from the child widget to ancestor widget. Jun 8, 2022
@akshayindia
Copy link
Author

akshayindia commented Jun 8, 2022

Attesting the issue video.

Screen.Recording.2022-06-08.at.6.08.16.PM.mov

@akshayindia
Copy link
Author

Hi Team,
Please let me know if I'm doing something wrong.
Thanks for contributing and creating this awesome plugin.
@marcglasberg, @bauerj @SoftWyer @blmayer @crizant

@crizant
Copy link
Contributor

crizant commented Jun 9, 2022

Please take a look at this:
#10

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

2 participants