disabledBackgroundColor: Colors.grey,
),
),
- toggleableActiveColor: ProxmoxColors.orange,
colorScheme: ColorScheme.dark().copyWith(
primary: ProxmoxColors.orange,
secondary: ProxmoxColors.orange,
onSecondary: ProxmoxColors.supportGrey),
+ checkboxTheme: CheckboxThemeData(
+ fillColor: MaterialStateProperty.resolveWith<Color?>(
+ (Set<MaterialState> states) {
+ if (states.contains(MaterialState.disabled)) {
+ return null;
+ }
+ if (states.contains(MaterialState.selected)) {
+ return ProxmoxColors.orange;
+ }
+ return null;
+ }),
+ ),
+ radioTheme: RadioThemeData(
+ fillColor: MaterialStateProperty.resolveWith<Color?>(
+ (Set<MaterialState> states) {
+ if (states.contains(MaterialState.disabled)) {
+ return null;
+ }
+ if (states.contains(MaterialState.selected)) {
+ return ProxmoxColors.orange;
+ }
+ return null;
+ }),
+ ),
+ switchTheme: SwitchThemeData(
+ thumbColor: MaterialStateProperty.resolveWith<Color?>(
+ (Set<MaterialState> states) {
+ if (states.contains(MaterialState.disabled)) {
+ return null;
+ }
+ if (states.contains(MaterialState.selected)) {
+ return ProxmoxColors.orange;
+ }
+ return null;
+ }),
+ trackColor: MaterialStateProperty.resolveWith<Color?>(
+ (Set<MaterialState> states) {
+ if (states.contains(MaterialState.disabled)) {
+ return null;
+ }
+ if (states.contains(MaterialState.selected)) {
+ return ProxmoxColors.orange;
+ }
+ return null;
+ }),
+ ),
),
child: Scaffold(
backgroundColor: ProxmoxColors.supportBlue,
Text(
'Note: Consider to disable SSL validation,'
' if you use a self signed, not commonly trusted, certificate.',
- style: Theme.of(context).textTheme.caption,
+ style: Theme.of(context).textTheme.bodySmall,
),
],
),