update pubspec

This commit is contained in:
2021-08-25 19:00:04 +06:30
parent 1b331e1f8e
commit a144c945b6
8 changed files with 315 additions and 293 deletions

View File

@@ -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;
}