[FIX] Taps in the switcher

This commit is contained in:
2024-05-18 12:33:22 +03:00
parent aeb15d9e93
commit 7c0e000c05

View File

@@ -140,7 +140,7 @@ class AstromicSwitcherToggleState extends State<AstromicSwitcherToggle> {
//S1 -- Label Spacing //S1 -- Label Spacing
if (widget.withLabel!) SizedBox(width: widget.style(widget.isEnabled!, _currentState).labelSpacing), if (widget.withLabel!) SizedBox(width: widget.style(widget.isEnabled!, _currentState).labelSpacing),
//S1 -- Label //S1 -- Label
if (widget.withLabel! && widget.label != null) GestureDetector(onTap: widget.isLabelTapable! ? _onTap(!_currentState) : null, child: widget.label!(widget.isEnabled!, _currentState)), if (widget.withLabel! && widget.label != null) GestureDetector(onTap: widget.isLabelTapable! ? () => _onTap(!_currentState) : null, child: widget.label!(widget.isEnabled!, _currentState)),
], ],
), ),
); );