mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
listen to locale changes while app is running and update accordingly
This commit is contained in:
parent
346a6a7a01
commit
cfd73be0c3
1 changed files with 6 additions and 0 deletions
|
@ -463,6 +463,12 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
|
|||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
void didChangeLocales(List<Locale>? locales) {
|
||||
ref.read(localeServiceChangeNotifierProvider).loadLocale();
|
||||
super.didChangeLocales(locales);
|
||||
}
|
||||
|
||||
@override
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) async {
|
||||
debugPrint("didChangeAppLifecycleState: ${state.name}");
|
||||
|
|
Loading…
Reference in a new issue