Implemented Radio Theme
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 35s
Pull Request Pipeline / lint (pull_request) Successful in 46s

This commit is contained in:
2026-02-24 18:01:10 +01:00
parent f07103a516
commit e71943f6e2
2 changed files with 11 additions and 10 deletions

View File

@@ -40,14 +40,19 @@ class GameTracker extends StatelessWidget {
primaryColor: CustomTheme.primaryColor,
scaffoldBackgroundColor: CustomTheme.backgroundColor,
appBarTheme: CustomTheme.appBarTheme,
colorScheme: const ColorScheme(
radioTheme: RadioThemeData(
fillColor: WidgetStateProperty.resolveWith<Color>((states) {
if (states.contains(WidgetState.selected)) {
return CustomTheme.primaryColor;
}
return CustomTheme.textColor;
}),
),
colorScheme: ColorScheme.fromSeed(
seedColor: CustomTheme.primaryColor,
brightness: Brightness.dark,
primary: CustomTheme.primaryColor,
onPrimary: CustomTheme.textColor,
secondary: CustomTheme.textColor,
onSecondary: Color(0xFF000000),
error: Color(0xFFFF0000),
onError: CustomTheme.textColor,
surface: CustomTheme.backgroundColor,
onSurface: CustomTheme.textColor,
),