remove onPressed state on tap cancel for storage card

This commit is contained in:
ashilkn 2022-10-31 20:15:56 +05:30
parent 91c5ef307e
commit e96f6d7ac6

View file

@ -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),
);
}