File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -509,6 +509,8 @@ class Toggle extends StatelessWidget {
509
509
510
510
@override
511
511
Widget build (BuildContext context) {
512
+ final designVariables = DesignVariables .of (context);
513
+
512
514
// Figma has this (blue/500) in both light and dark mode.
513
515
// TODO(#831)
514
516
final activeColor = Color (0xff4370f0 );
@@ -550,8 +552,10 @@ class Toggle extends StatelessWidget {
550
552
~ WidgetState .selected: null ,
551
553
}),
552
554
553
- // Figma has white for "on" and "off" in both light and dark mode.
554
- thumbColor: WidgetStatePropertyAll (Colors .white),
555
+ thumbColor: WidgetStateProperty .fromMap ({
556
+ WidgetState .selected: Colors .white,
557
+ ~ WidgetState .selected: designVariables.mainBackground,
558
+ }),
555
559
556
560
trackColor: trackColor,
557
561
trackOutlineColor: WidgetStatePropertyAll (Colors .transparent),
You can’t perform that action at this time.
0 commit comments