mod: search dynamic

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-23 10:10:26 +08:00
parent dd75733881
commit 572c170400
3 changed files with 189 additions and 26 deletions

View File

@@ -160,12 +160,10 @@ class MyApp extends StatelessWidget {
// showSemanticsDebugger: true,
title: 'PiliPalaX',
theme: _getThemeData(
context: context,
colorScheme: lightColorScheme,
isDynamic: lightDynamic != null && isDynamicColor,
),
darkTheme: _getThemeData(
context: context,
colorScheme: darkColorScheme,
isDynamic: darkDynamic != null && isDynamicColor,
),
@@ -201,7 +199,6 @@ class MyApp extends StatelessWidget {
}
ThemeData _getThemeData({
required BuildContext context,
required ColorScheme colorScheme,
required bool isDynamic,
}) {