Skip to content

Commit

Permalink
58: fixes transparent background color
Browse files Browse the repository at this point in the history
  • Loading branch information
maeddin committed Apr 9, 2024
1 parent 0237130 commit cddcb9c
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 @@ -1114,7 +1114,9 @@ class AnimatedToggleSwitch<T extends Object?>
_BaseToggleStyle._lerpFunction(styleAnimationType),
(style) => DecoratedBox(
decoration: BoxDecoration(
color: style._backgroundColor?.value,
color: style._backgroundGradient != null
? null
: style._backgroundColor?.value,
gradient: style._backgroundGradient?.value,
borderRadius: style._borderRadius?.value,
boxShadow: style._boxShadow?.value,
Expand Down

0 comments on commit cddcb9c

Please sign in to comment.