From 1625a957f8f34e43ad381c26fb4d7e2abffd4646 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 19 Jan 2025 00:39:47 +0800 Subject: [PATCH] :necktie: Use material design 3 by default --- lib/screens/settings.dart | 2 +- lib/theme.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/screens/settings.dart b/lib/screens/settings.dart index 297030b..3d448c3 100644 --- a/lib/screens/settings.dart +++ b/lib/screens/settings.dart @@ -120,7 +120,7 @@ class _SettingsScreenState extends State { subtitle: Text('settingsThemeMaterial3Description').tr(), contentPadding: const EdgeInsets.only(left: 24, right: 17), secondary: const Icon(Symbols.new_releases), - value: _prefs.getBool(kMaterialYouToggleStoreKey) ?? false, + value: _prefs.getBool(kMaterialYouToggleStoreKey) ?? true, onChanged: (value) { setState(() { _prefs.setBool( diff --git a/lib/theme.dart b/lib/theme.dart index 0354f65..964b6f6 100644 --- a/lib/theme.dart +++ b/lib/theme.dart @@ -36,7 +36,7 @@ Future createAppTheme( final hasAppBarBlurry = prefs.getBool(kAppbarTransparentStoreKey) ?? false; return ThemeData( - useMaterial3: useMaterial3 ?? (prefs.getBool(kMaterialYouToggleStoreKey) ?? false), + useMaterial3: useMaterial3 ?? (prefs.getBool(kMaterialYouToggleStoreKey) ?? true), colorScheme: colorScheme, brightness: brightness, iconTheme: IconThemeData(