[FIX] Taps in the switcher
This commit is contained in:
@@ -140,7 +140,7 @@ class AstromicSwitcherToggleState extends State<AstromicSwitcherToggle> {
|
||||
//S1 -- Label Spacing
|
||||
if (widget.withLabel!) SizedBox(width: widget.style(widget.isEnabled!, _currentState).labelSpacing),
|
||||
//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)),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user