Hi, are there any best practice to changing the app locale manually from inside the app, since it rebuilds the entire app. Is it safe to do this or should avoid it. Thanks
You shouldn’t need to do it more than once or twice, I presume, so who cares about a build pass?
@RandalSchwartz
I meant that is it ok to add a language switcher in
the app, on switching everytime it will update the app locale and rebuild the MaterialApp.
Absolutely, we have a ListenableBuilder at the very root of our app that rebuilds if a user’s logs in/out. As long as you don’t change the ValueListenable too often it won’t rebuild unnecessary