Browse Source

remove onPressed state on tap cancel for storage card

ashilkn 2 years ago
parent
commit
e96f6d7ac6
1 changed files with 3 additions and 6 deletions
  1. 3 6
      lib/ui/settings/details_section_widget.dart

+ 3 - 6
lib/ui/settings/details_section_widget.dart

@@ -64,12 +64,9 @@ class _DetailsSectionWidgetState extends State<DetailsSectionWidget> {
             ),
           );
         },
-        onTapDown: (details) {
-          _isStorageCardPressed.value = true;
-        },
-        onTapUp: (details) {
-          _isStorageCardPressed.value = false;
-        },
+        onTapDown: (details) => _isStorageCardPressed.value = true,
+        onTapCancel: () => _isStorageCardPressed.value = false,
+        onTapUp: (details) => _isStorageCardPressed.value = false,
         child: containerForUserDetails(inheritedUserDetails),
       );
     }