add scale setting

This commit is contained in:
Fabian Freund
2026-03-05 17:59:59 +01:00
parent d4265fc8c8
commit 66183ec075
7 changed files with 191 additions and 2 deletions
+6
View File
@@ -128,6 +128,11 @@ class _MainWidget extends HookConsumerWidget {
final themeMode = ref.watch(
generalSettingsWithDefaultsProvider.select((value) => value.themeMode),
);
final uiScaleFactor = ref.watch(
generalSettingsWithDefaultsProvider.select(
(value) => value.uiScaleFactor,
),
);
useOnInitialization(() async {
await CountryCodes.init();
@@ -255,6 +260,7 @@ class _MainWidget extends HookConsumerWidget {
extensions: const <ThemeExtension<dynamic>>[AppColors.dark],
),
themeMode: themeMode,
uiScaleFactor: uiScaleFactor,
);
},
);