-
-
Notifications
You must be signed in to change notification settings - Fork 363
Closed
Description
I've updated easy_localization: 3.0.0 package from easy_localization: ^2.3.3.
When i was using easy_localization: ^2.3.3 it is updating my app locale instantly whenever i called
setState(() {
context.locale = Locale("en");
});
But since I've updated the package version to 3.0.0 it is not updating the locale instantly. I've to hot restart the whole app to see the changes.
Here is what im doing in version 3.0.0
onTap: () async { await homeController .setLanguage("EN") .then((value) async { await context .setLocale( const Locale( "en")); }) },
And here is what im doing in version 2.3.3 (which is working,and updating locale instantly)
onTap: () { homeController .setLanguage("EN"); setState(() { context.locale = const Locale( "en"); }); },
sofiyevsr, SalehHub, alvindrakes, giandifra, sgissinger and 28 moreCoool
Metadata
Metadata
Assignees
Labels
No labels