How to change a Flutter app language without restarting the app?

Posted by Jennifer | Updated on

Want to change a Flutter app language without restarting the app? Wrap your MaterialApp into a StreamBuilder which will be responsible for providing the Locale value to your application. And it will enable you to dynamically change it without restarting your app.

This is an example using the rxdart package to implement the stream:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers