Skip to content

Commit

Permalink
Switch: use onPrimary for selected thumb to match primary track (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi committed Mar 11, 2023
1 parent b8ef574 commit 6217876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/themes/common_themes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Color _getSwitchThumbColor(Set<MaterialState> states, ColorScheme colorScheme) {
return colorScheme.onSurface.withOpacity(0.5);
} else {
if (states.contains(MaterialState.selected)) {
return Colors.white;
return colorScheme.onPrimary;
} else {
return colorScheme.onSurface.withOpacity(0.7);
}
Expand Down

0 comments on commit 6217876

Please sign in to comment.