Skip to content

Commit

Permalink
58: fixes transparent indicator color
Browse files Browse the repository at this point in the history
  • Loading branch information
maeddin committed Apr 9, 2024
1 parent cddcb9c commit aa7ca60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/widgets/animated_toggle_switch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,9 @@ class AnimatedToggleSwitch<T extends Object?>
return DecoratedBox(
key: AnimatedToggleSwitchTestKeys.indicatorDecoratedBoxKey,
decoration: BoxDecoration(
color: style._indicatorColor?.value,
color: style._indicatorGradient != null
? null
: style._indicatorColor?.value,
gradient: style._indicatorGradient?.value,
borderRadius: style._indicatorBorderRadius?.value,
border: style._indicatorBorder?.value,
Expand Down

0 comments on commit aa7ca60

Please sign in to comment.