Closed salamay closed 1 month ago
The first language your app default language in the list of languages
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Locales.init(['en', 'fa', 'ps']); // get last saved language
// remove await if you want to get app default language
runApp(MyApp());
}
Could not automatically detect app default language. I had to switch back to 2.0.0