Browse Source

remove onPressed state on tap cancel for storage card

ashilkn 2 năm trước cách đây
mục cha
commit
e96f6d7ac6
1 tập tin đã thay đổi với 3 bổ sung6 xóa
  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),
       );
     }