2 Commits

Author SHA1 Message Date
e71943f6e2 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
2026-02-24 18:01:10 +01:00
f07103a516 Fixed theme issue 2026-02-24 17:49:24 +01:00
2 changed files with 14 additions and 6 deletions

View File

@@ -40,10 +40,22 @@ class GameTracker extends StatelessWidget {
primaryColor: CustomTheme.primaryColor, primaryColor: CustomTheme.primaryColor,
scaffoldBackgroundColor: CustomTheme.backgroundColor, scaffoldBackgroundColor: CustomTheme.backgroundColor,
appBarTheme: CustomTheme.appBarTheme, appBarTheme: CustomTheme.appBarTheme,
radioTheme: RadioThemeData(
fillColor: WidgetStateProperty.resolveWith<Color>((states) {
if (states.contains(WidgetState.selected)) {
return CustomTheme.primaryColor;
}
return CustomTheme.textColor;
}),
),
colorScheme: ColorScheme.fromSeed( colorScheme: ColorScheme.fromSeed(
seedColor: CustomTheme.primaryColor, seedColor: CustomTheme.primaryColor,
brightness: Brightness.dark, brightness: Brightness.dark,
).copyWith(surface: CustomTheme.backgroundColor), primary: CustomTheme.primaryColor,
onPrimary: CustomTheme.textColor,
surface: CustomTheme.backgroundColor,
onSurface: CustomTheme.textColor,
),
pageTransitionsTheme: const PageTransitionsTheme( pageTransitionsTheme: const PageTransitionsTheme(
builders: { builders: {
TargetPlatform.iOS: CupertinoPageTransitionsBuilder(), TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),

View File

@@ -36,11 +36,7 @@ class CustomRadioListTile<T> extends StatelessWidget {
), ),
child: Row( child: Row(
children: [ children: [
Radio<T>( Radio<T>(value: value, toggleable: true),
value: value,
activeColor: CustomTheme.primaryColor,
toggleable: true,
),
Expanded( Expanded(
child: Text( child: Text(
text, text,