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
How to change language promatically #15
Comments
hi, |
Thanks @NMateu |
But it seems that you have to change the state of MaterialApp, and this will reload the entire app. Is there any ways to change language in a setting page but not reload the app? Thanks! |
I don't see the problem rebuilding the MaterialApp widget. |
It's usable but other widgets will lose their states. I think it's best to stay in the same page after you change language. |
No they won't lose their state. They will be rebuilt with the new Localization parent. Can you provide a MWE ? Maybe I don't get it right. |
You are right. It's my mistake. There is another problem to make my app reload. What's more. I find that we can change locale field in MaterialApp to "change language promatically ".
Your plugin is so great. I am deeply grateful for you help. |
I use this plug-in can change language when app start-up.
But if I want to change language programmatically, who to do so.
ex: change language when I click a button.
thanks a lot :)
The text was updated successfully, but these errors were encountered: