Closed
Description
Problem
- If you use localeResolutioncallback, you get the wrong locale value
- Sample codes
// ... import 'package:flutter_localizations/flutter_localizations.dart'; // ... localizationsDelegates: [ GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, ], localeResolutionCallback: (Locale locale, Iterable<Locale> supportedLocales) { print("localeResolutionCallback!!"); print("locale.countryCode : " + locale.countryCode.toString()); print("locale.languageCode : " + locale.languageCode.toString()); return locale; }
How to reproduce
- Launch the app
- Change device language to another language
- Resume the app
as is
expected