update pubspec
This commit is contained in:
@@ -59,7 +59,7 @@ class _AppState extends State<App> {
|
||||
final CartonSizeModel cartonSizeModel = new CartonSizeModel();
|
||||
final ProcessingModel processingModel = new ProcessingModel();
|
||||
|
||||
AppTranslationsDelegate _newLocaleDelegate;
|
||||
late AppTranslationsDelegate _newLocaleDelegate;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -81,7 +81,8 @@ class _AppState extends State<App> {
|
||||
..addModel(cartonSizeModel)
|
||||
..addModel(processingModel);
|
||||
|
||||
_newLocaleDelegate = AppTranslationsDelegate(newLocale: null);
|
||||
_newLocaleDelegate = AppTranslationsDelegate(
|
||||
newLocale: Translation().supportedLocales().first);
|
||||
Translation().onLocaleChanged = onLocaleChange;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user