Skip to content

Commit

Permalink
Fix alert buttons background color
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaumeise03 committed Aug 4, 2024
1 parent 6987aa6 commit 70d432f
Showing 1 changed file with 18 additions and 29 deletions.
47 changes: 18 additions & 29 deletions lib/pages/fittings_list/widgets/fitting_folder_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -223,37 +223,26 @@ class _FittingFolderState extends State<FittingFolderCard> {
'Are you sure you want to delete this folder? This will include ALL of it\'s contents!'
'\n\nThis action cannot be reversed.'),
actions: <Widget>[
Container(
decoration: BoxDecoration(
color: Theme.of(context).cardColor,
borderRadius: BorderRadius.circular(8)
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: LocalisedText(
localiseId: LocalisationStrings.cancel,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: LocalisedText(
localiseId: LocalisationStrings.cancel,
),
),
Padding(
padding: const EdgeInsets.only(left: 16.0),
child: TextButton(
onPressed: () {
widgetContext
.read<ShipFittingBrowserBloc>()
.add(DeleteShipFitting(shipFittingId: folder.id));
Navigator.of(context).pop();
},
child: LocalisedText(localiseId: LocalisationStrings.ok),
),
),
],
),
Padding(
padding: const EdgeInsets.only(left: 16.0),
child: TextButton(
onPressed: () {
widgetContext
.read<ShipFittingBrowserBloc>()
.add(DeleteShipFitting(shipFittingId: folder.id));
Navigator.of(context).pop();
},
child: LocalisedText(localiseId: LocalisationStrings.ok),
),
)
),
],
);
},
Expand Down

0 comments on commit 70d432f

Please sign in to comment.