Closed bogdanorzea closed 4 years ago
Hi @bogdanorzea Hmm, this seems caused by code generated by https://github.com/dart-lang/intl_translation that this plugin relies on.
By the way, is there a reason you reinstantiate MaterialApp on every click, and not defining MaterialApp as a root widget? Not sure how good that practice is in general, and having MaterialApp as a root should probably fix this issue.
Hi @aleksakrstic and thanks for your answer. I was adding a few bloc providers and bloc listeners above the MaterialApp so that I can react to things like login/logout or account creation.
Based on your feedback, I refactored the layout so that I have Providers > MaterialApp > Builders > Screens. By doing this, I can change the language and locale programmatically and I don't see any weird flickering anymore.
Thanks for your feedback and help!
Hello, I noticed that there is a UI problem when using this extension and a Bloc to switch to another MaterialApp. I tried to recreate this problem using a simple sample:
In my example, once I comment out "S.delegate", the problem goes away. I'm using version 1.8.0 of localizely.flutter-intl.
https://gfycat.com/latehiddencattle