Procházet zdrojové kódy

Made actionSheet dismissable

ashilkn před 2 roky
rodič
revize
82276958d7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/ui/components/action_sheet_widget.dart

+ 1 - 1
lib/ui/components/action_sheet_widget.dart

@@ -41,6 +41,7 @@ Future<ButtonAction?> showCommonActionSheet({
   );
 }
 
+///Returns null if dismissed by tapping outside
 Future<ButtonAction?> showActionSheet({
   required BuildContext context,
   required List<ButtonWidget> buttons,
@@ -63,7 +64,6 @@ Future<ButtonAction?> showActionSheet({
         isCheckIconGreen: isCheckIconGreen,
       );
     },
-    isDismissible: false,
     enableDrag: false,
   );
 }