From 531eb6f3aed71d5f3f983591899acd317cf7c934 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Mon, 6 Apr 2020 17:14:50 +0200 Subject: [PATCH] Dismissable: Increase threshold to 60% A number of users have complained that they currently land up deleting note accidentally because of the swipe gesture. --- lib/widgets/icon_dismissable.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/widgets/icon_dismissable.dart b/lib/widgets/icon_dismissable.dart index 99325ad6..4e3305fd 100644 --- a/lib/widgets/icon_dismissable.dart +++ b/lib/widgets/icon_dismissable.dart @@ -37,5 +37,10 @@ class IconDismissable extends Dismissible { ), ), ), + dismissThresholds: { + DismissDirection.horizontal: 0.60, + DismissDirection.endToStart: 0.60, + DismissDirection.startToEnd: 0.60, + }, ); }