瀏覽代碼

Update color of the active track within Toggle Switches

vishnukvmd 1 年之前
父節點
當前提交
60e34f780e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/ui/components/toggle_switch_widget.dart

+ 1 - 0
lib/ui/components/toggle_switch_widget.dart

@@ -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,