Update color of the active track within Toggle Switches

This commit is contained in:
vishnukvmd 2023-09-08 21:04:05 +05:30
parent 16d57b8bad
commit 60e34f780e

View file

@ -53,6 +53,7 @@ class _ToggleSwitchWidgetState extends State<ToggleSwitchWidget> {
fit: BoxFit.contain,
child: Switch.adaptive(
activeColor: enteColorScheme.primary400,
activeTrackColor: enteColorScheme.primary300,
inactiveTrackColor: enteColorScheme.fillMuted,
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
value: toggleValue ?? false,