Skip to content

Commit

Permalink
fix delete treshold
Browse files Browse the repository at this point in the history
  • Loading branch information
Popiron committed Jul 26, 2023
1 parent 0a5021b commit c82bc66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/dismissible_pane.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class _DismissiblePaneState extends State<DismissiblePane> {
final endGesture = controller!.dismissGesture.value!.endGesture;
final position = controller!.animation.value;

if (endGesture is OpeningGesture ||
if (endGesture is OpeningGesture && position >= widget.dismissThreshold ||
endGesture is StillGesture && position >= widget.dismissThreshold) {
bool canDismiss = true;
if (widget.confirmDismiss != null) {
Expand Down

0 comments on commit c82bc66

Please sign in to comment.