From 22ce742d4333a80d9b759de160591245b98ddbfa Mon Sep 17 00:00:00 2001 From: Mathis Kirchner Date: Sun, 11 Jan 2026 17:14:28 +0100 Subject: [PATCH] change button alignment & remove InkWell Animation --- lib/presentation/views/main_menu/settings_view.dart | 9 +++++++++ lib/presentation/widgets/custom_alert_dialog.dart | 1 + 2 files changed, 10 insertions(+) diff --git a/lib/presentation/views/main_menu/settings_view.dart b/lib/presentation/views/main_menu/settings_view.dart index 500a550..5814537 100644 --- a/lib/presentation/views/main_menu/settings_view.dart +++ b/lib/presentation/views/main_menu/settings_view.dart @@ -98,13 +98,22 @@ class _SettingsViewState extends State { content: loc.this_cannot_be_undone, actions: [ TextButton( + style: TextButton.styleFrom( + splashFactory: NoSplash.splashFactory, + overlayColor: Colors.transparent, + ), onPressed: () => Navigator.of(context).pop(false), child: Text(loc.cancel, style: const TextStyle(color: CustomTheme.textColor),), ), TextButton( + style: TextButton.styleFrom( + splashFactory: NoSplash.splashFactory, + overlayColor: Colors.transparent, + ), onPressed: () => Navigator.of(context).pop(true), child: Text(loc.delete, style: TextStyle(color: CustomTheme.secondaryColor),), ), + ], ), ).then((confirmed) { diff --git a/lib/presentation/widgets/custom_alert_dialog.dart b/lib/presentation/widgets/custom_alert_dialog.dart index 6a6019a..2456b56 100644 --- a/lib/presentation/widgets/custom_alert_dialog.dart +++ b/lib/presentation/widgets/custom_alert_dialog.dart @@ -20,6 +20,7 @@ class CustomAlertDialog extends StatelessWidget { content: Text(content, style: const TextStyle(color: CustomTheme.textColor),), actions: actions, backgroundColor: CustomTheme.boxColor, + actionsAlignment: MainAxisAlignment.spaceAround, shape: RoundedRectangleBorder( borderRadius: CustomTheme.standardBorderRadiusAll, side: BorderSide(color: CustomTheme.boxBorder),