Localizely logo
  • Home
  • Getting started
  • How it works
  • Pricing
  • FAQ
Sign up

How to programmatically change the locale in Flutter? 

There are several ways this can be done.
The main thing is to explicitly set the locale prop of the MaterialApp widget on language change.
Below, you can find an example of how to do that using the provider package.

Note: For more details, please check out an example on GitHub.

Related Flutter internationalization questions:

Flutter internationalization tutorial:

Learn about internationalization in Flutter
Localizely logo
About
Free tools
Boring stuff
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
Newsletter
Copyrights 2026 © Localizely