From 6d0c117f8f130a6dea82f456fd1740fb80d414c4 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Wed, 28 Dec 2022 16:57:00 +0530 Subject: [PATCH] Remove unused code + enabled drag to dismiss action sheet --- lib/ui/components/action_sheet_widget.dart | 30 +--------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/lib/ui/components/action_sheet_widget.dart b/lib/ui/components/action_sheet_widget.dart index af282e62c..6688b4862 100644 --- a/lib/ui/components/action_sheet_widget.dart +++ b/lib/ui/components/action_sheet_widget.dart @@ -14,34 +14,7 @@ enum ActionSheetType { iconOnly, } -Future showCommonActionSheet({ - required BuildContext context, - required List buttons, - required ActionSheetType actionSheetType, - bool isCheckIconGreen = false, - String? title, - String? body, -}) { - return showMaterialModalBottomSheet( - backgroundColor: Colors.transparent, - barrierColor: backdropFaintDark, - useRootNavigator: true, - context: context, - builder: (_) { - return ActionSheetWidget( - title: title, - body: body, - actionButtons: buttons, - actionSheetType: actionSheetType, - isCheckIconGreen: isCheckIconGreen, - ); - }, - isDismissible: false, - enableDrag: false, - ); -} - -///Returns null if dismissed by tapping outside +///Returns null if dismissed Future showActionSheet({ required BuildContext context, required List buttons, @@ -64,7 +37,6 @@ Future showActionSheet({ isCheckIconGreen: isCheckIconGreen, ); }, - enableDrag: false, ); }