From fdef9e0f82e0e05b3ffeb0a66ea45bd0af7feb71 Mon Sep 17 00:00:00 2001 From: abhishek09827 <107637702+abhishek09827@users.noreply.github.com> Date: Tue, 9 May 2023 15:09:35 +0530 Subject: [PATCH] Update confirm_bottom_sheet_view.dart fix: Removed deprecated FlatButton and fixed some issues --- .../confirm_bottom_sheet/confirm_bottom_sheet_view.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ui/widgets/smart_widgets/bottom_sheets/confirm_bottom_sheet/confirm_bottom_sheet_view.dart b/lib/ui/widgets/smart_widgets/bottom_sheets/confirm_bottom_sheet/confirm_bottom_sheet_view.dart index d27859d..de1ddcf 100644 --- a/lib/ui/widgets/smart_widgets/bottom_sheets/confirm_bottom_sheet/confirm_bottom_sheet_view.dart +++ b/lib/ui/widgets/smart_widgets/bottom_sheets/confirm_bottom_sheet/confirm_bottom_sheet_view.dart @@ -50,14 +50,15 @@ class ConfirmBottomSheetView extends StatelessWidget { ), ), // ignore: deprecated_member_use - FlatButton( + ElevatedButton( onPressed: () => completer(SheetResponse(confirmed: true)), child: Text( request.mainButtonTitle!, style: TextStyle(color: Colors.white), ), - color: Theme.of(context).primaryColor, - ) + style: ElevatedButton.styleFrom( + foregroundColor: Theme.of(context).primaryColor + ), ], ) ],