Skip to content

Commit

Permalink
Add onTapCancel callback
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia committed Feb 22, 2022
1 parent c9967f7 commit 3be6b30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/widgets/adw/button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ class _AdwButtonState extends State<AdwButton> {
onTap: widget.onPressed,
onTapDown: (_) => setState(() => _status = AdwButtonStatus.tapDown),
onTapUp: (_) => setState(reset),
onTapCancel: () => setState(() => _status = AdwButtonStatus.enabled),
child: AnimatedContainer(
padding: widget.padding,
constraints: widget.constraints,
Expand Down

0 comments on commit 3be6b30

Please sign in to comment.