example app: change switch design

This commit is contained in:
Hiroshi Horie
2021-10-25 02:33:53 +09:00
parent d065c2eb97
commit bf1322642b
2 changed files with 71 additions and 94 deletions
+9
View File
@@ -57,6 +57,15 @@ class LiveKitTheme {
checkColor: MaterialStateProperty.all(Colors.white),
fillColor: MaterialStateProperty.all(accentColor),
),
// switchTheme: SwitchThemeData(
// trackColor: MaterialStateProperty.resolveWith((states) {
// print('states: $states');
// if (states.contains(MaterialState.disabled)) {
// return Colors.red;
// }
// return accentColor;
// }),
// ),
dialogTheme: DialogTheme(
backgroundColor: cardColor,
shape: RoundedRectangleBorder(