Skip to content

Commit 869072e

Browse files
author
Ahmed Amine Zribi
committed
feat: change checked when pressed and hovered
1 parent 28e2075 commit 869072e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ouds_core/lib/components/switch/ouds_switch.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class _OudsSwitchState extends State<OudsSwitch> with SingleTickerProviderStateM
180180
borderRadius: BorderRadius.circular(switchButton.borderRadius),
181181
),
182182
child: widget.value == true
183-
? !_isHovered
183+
? !_isPressed && !_isHovered
184184
? Align(
185185
child: Opacity(
186186
opacity: switchButton.opacityCheck,

0 commit comments

Comments
 (0)