Explorar o código

Add default value for actionSheetType

Neeraj Gupta %!s(int64=2) %!d(string=hai) anos
pai
achega
7ef4a34607
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/ui/components/action_sheet_widget.dart

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

@@ -18,7 +18,7 @@ enum ActionSheetType {
 Future<ButtonAction?> showActionSheet({
   required BuildContext context,
   required List<ButtonWidget> buttons,
-  required ActionSheetType actionSheetType,
+  ActionSheetType actionSheetType = ActionSheetType.defaultActionSheet,
   bool enableDrag = true,
   bool isDismissible = true,
   bool isCheckIconGreen = false,