Skip to content

Commit 6eab61e

Browse files
committed
refactor: update default colors for mixed and on state colors
1 parent ed054bb commit 6eab61e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/widget/switch.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ class TripleStateSwitch extends StatelessWidget {
308308
? state == SwitchState.off
309309
? startBackgroundColor ?? SwitchColors.backgroundColor
310310
: state == SwitchState.mixed
311-
? middleBackgroundColor ?? SwitchColors.backgroundColor
312-
: endBackgroundColor ?? SwitchColors.backgroundColor
311+
? middleBackgroundColor ?? Colors.grey
312+
: endBackgroundColor ?? Theme.of(context).primaryColor
313313
: SwitchColors.disableBackgroundColor,
314314
borderRadius: borderRadius ??
315315
BorderRadius.circular(

0 commit comments

Comments
 (0)