Bläddra i källkod

Increased tappable area for cancel in bottomActionSheet

ashilkn 2 år sedan
förälder
incheckning
e1e3e9cd81
1 ändrade filer med 11 tillägg och 11 borttagningar
  1. 11 11
      lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart

+ 11 - 11
lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart

@@ -75,17 +75,17 @@ class BottomActionBarWidget extends StatelessWidget {
                   controller: _expandableController,
                   controller: _expandableController,
                 ),
                 ),
               ),
               ),
-              GestureDetector(
-                onTap: () {
-                  onCancel?.call();
-                  _expandableController.value = false;
-                },
-                child: Container(
-                  width: double.infinity,
-                  padding: const EdgeInsets.symmetric(
-                    horizontal: 16,
-                    vertical: 14,
-                  ),
+              Padding(
+                padding: const EdgeInsets.symmetric(
+                  horizontal: 16,
+                  vertical: 14,
+                ),
+                child: GestureDetector(
+                  behavior: HitTestBehavior.opaque,
+                  onTap: () {
+                    onCancel?.call();
+                    _expandableController.value = false;
+                  },
                   child: Center(
                   child: Center(
                     child: Text(
                     child: Text(
                       "Cancel",
                       "Cancel",