Change prefs

This commit is contained in:
problematicconsumer
2023-09-07 13:43:46 +03:30
parent d52404a040
commit 854b522d97
10 changed files with 47 additions and 44 deletions

View File

@@ -13,7 +13,7 @@ class AppView extends HookConsumerWidget with PresLogger {
@override
Widget build(BuildContext context, WidgetRef ref) {
final router = ref.watch(routerProvider);
final locale = ref.watch(localeNotifierProvider).locale;
final locale = ref.watch(localeNotifierProvider).flutterLocale;
final theme = ref.watch(themeProvider);
ref.watch(commonControllersProvider);
@@ -21,7 +21,7 @@ class AppView extends HookConsumerWidget with PresLogger {
return MaterialApp.router(
routerConfig: router,
locale: locale,
supportedLocales: AppLocale.locales,
supportedLocales: AppLocaleUtils.supportedLocales,
localizationsDelegates: GlobalMaterialLocalizations.delegates,
debugShowCheckedModeBanner: false,
themeMode: theme.mode,