Skip to content

Commit

Permalink
Update pressable_widget.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
tilucasoli committed Jul 11, 2024
1 parent ac4a3ed commit 36352a5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ abstract class _MixStateWidgetBuilderState<T extends _MixStateWidgetBuilder>
}
}

_timer?.cancel();
_timer = null;

final delay = widget.unpressDelay;

if (delay != Duration.zero) {
Expand Down

0 comments on commit 36352a5

Please sign in to comment.