lab7
This commit is contained in:
parent
e3e56c0323
commit
4d7498d940
@ -13,5 +13,6 @@ class LocaleBloc extends Bloc<LocaleEvent, LocaleState> {
|
|||||||
final toChange = AppLocale.supportedLocales
|
final toChange = AppLocale.supportedLocales
|
||||||
.firstWhere((e) => e.languageCode != state.currentLocale.languageCode);
|
.firstWhere((e) => e.languageCode != state.currentLocale.languageCode);
|
||||||
emit(state.copyWith(currentLocale: toChange));
|
emit(state.copyWith(currentLocale: toChange));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user