浏览代码

Add default value for actionSheetType

Neeraj Gupta 2 年之前
父节点
当前提交
7ef4a34607
共有 1 个文件被更改,包括 1 次插入1 次删除
  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({
 Future<ButtonAction?> showActionSheet({
   required BuildContext context,
   required BuildContext context,
   required List<ButtonWidget> buttons,
   required List<ButtonWidget> buttons,
-  required ActionSheetType actionSheetType,
+  ActionSheetType actionSheetType = ActionSheetType.defaultActionSheet,
   bool enableDrag = true,
   bool enableDrag = true,
   bool isDismissible = true,
   bool isDismissible = true,
   bool isCheckIconGreen = false,
   bool isCheckIconGreen = false,