Преглед на файлове

Made actionSheet dismissable

ashilkn преди 2 години
родител
ревизия
82276958d7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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({
 Future<ButtonAction?> showActionSheet({
   required BuildContext context,
   required BuildContext context,
   required List<ButtonWidget> buttons,
   required List<ButtonWidget> buttons,
@@ -63,7 +64,6 @@ Future<ButtonAction?> showActionSheet({
         isCheckIconGreen: isCheckIconGreen,
         isCheckIconGreen: isCheckIconGreen,
       );
       );
     },
     },
-    isDismissible: false,
     enableDrag: false,
     enableDrag: false,
   );
   );
 }
 }