WIP: Neues Popup Design #152

Draft
sneeex wants to merge 5 commits from feature/129-neues-popup-design into development
2 changed files with 10 additions and 0 deletions
Showing only changes of commit 22ce742d43 - Show all commits

View File

@@ -98,13 +98,22 @@ class _SettingsViewState extends State<SettingsView> {
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) {

View File

@@ -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),