소스 검색

Use only List<ButtonWidget> for button property in ActionSheetWidget

ashilkn 2 년 전
부모
커밋
a6fc65a6eb
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      lib/ui/components/action_sheet_widget.dart

+ 3 - 2
lib/ui/components/action_sheet_widget.dart

@@ -6,6 +6,7 @@ import 'package:photos/core/constants.dart';
 import 'package:photos/theme/colors.dart';
 import 'package:photos/theme/colors.dart';
 import 'package:photos/theme/effects.dart';
 import 'package:photos/theme/effects.dart';
 import 'package:photos/theme/ente_theme.dart';
 import 'package:photos/theme/ente_theme.dart';
+import 'package:photos/ui/components/button_widget.dart';
 import 'package:photos/utils/separators_util.dart';
 import 'package:photos/utils/separators_util.dart';
 
 
 enum ActionSheetType {
 enum ActionSheetType {
@@ -15,7 +16,7 @@ enum ActionSheetType {
 
 
 Future<dynamic> showActionSheet({
 Future<dynamic> showActionSheet({
   required BuildContext context,
   required BuildContext context,
-  required List<Widget> buttons,
+  required List<ButtonWidget> buttons,
   required ActionSheetType actionSheetType,
   required ActionSheetType actionSheetType,
   bool isCheckIconGreen = false,
   bool isCheckIconGreen = false,
   String? title,
   String? title,
@@ -43,7 +44,7 @@ Future<dynamic> showActionSheet({
 class ActionSheetWidget extends StatelessWidget {
 class ActionSheetWidget extends StatelessWidget {
   final String? title;
   final String? title;
   final String? body;
   final String? body;
-  final List<Widget> actionButtons;
+  final List<ButtonWidget> actionButtons;
   final ActionSheetType actionSheetType;
   final ActionSheetType actionSheetType;
   final bool isCheckIconGreen;
   final bool isCheckIconGreen;