change button alignment & remove InkWell Animation
This commit is contained in:
@@ -98,13 +98,22 @@ class _SettingsViewState extends State<SettingsView> {
|
|||||||
content: loc.this_cannot_be_undone,
|
content: loc.this_cannot_be_undone,
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
|
style: TextButton.styleFrom(
|
||||||
|
splashFactory: NoSplash.splashFactory,
|
||||||
|
overlayColor: Colors.transparent,
|
||||||
|
),
|
||||||
onPressed: () => Navigator.of(context).pop(false),
|
onPressed: () => Navigator.of(context).pop(false),
|
||||||
child: Text(loc.cancel, style: const TextStyle(color: CustomTheme.textColor),),
|
child: Text(loc.cancel, style: const TextStyle(color: CustomTheme.textColor),),
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
|
style: TextButton.styleFrom(
|
||||||
|
splashFactory: NoSplash.splashFactory,
|
||||||
|
overlayColor: Colors.transparent,
|
||||||
|
),
|
||||||
onPressed: () => Navigator.of(context).pop(true),
|
onPressed: () => Navigator.of(context).pop(true),
|
||||||
child: Text(loc.delete, style: TextStyle(color: CustomTheme.secondaryColor),),
|
child: Text(loc.delete, style: TextStyle(color: CustomTheme.secondaryColor),),
|
||||||
),
|
),
|
||||||
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
).then((confirmed) {
|
).then((confirmed) {
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ class CustomAlertDialog extends StatelessWidget {
|
|||||||
content: Text(content, style: const TextStyle(color: CustomTheme.textColor),),
|
content: Text(content, style: const TextStyle(color: CustomTheme.textColor),),
|
||||||
actions: actions,
|
actions: actions,
|
||||||
backgroundColor: CustomTheme.boxColor,
|
backgroundColor: CustomTheme.boxColor,
|
||||||
|
actionsAlignment: MainAxisAlignment.spaceAround,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: CustomTheme.standardBorderRadiusAll,
|
borderRadius: CustomTheme.standardBorderRadiusAll,
|
||||||
side: BorderSide(color: CustomTheme.boxBorder),
|
side: BorderSide(color: CustomTheme.boxBorder),
|
||||||
|
|||||||
Reference in New Issue
Block a user