Unify button style for desktop

This commit is contained in:
grummbeer 2023-02-15 16:41:34 +01:00
parent 536498f83c
commit 4cddaa4f0c

View File

@ -500,12 +500,14 @@ class OverlayDialogManager {
Offstage( Offstage(
offstage: !showCancel, offstage: !showCancel,
child: Center( child: Center(
child: TextButton( child: isDesktop
? dialogButton('Cancel', onPressed: cancel)
: TextButton(
style: flatButtonStyle, style: flatButtonStyle,
onPressed: cancel, onPressed: cancel,
child: Text(translate('Cancel'), child: Text(translate('Cancel'),
style: style: const TextStyle(
const TextStyle(color: MyTheme.accent))))) color: MyTheme.accent)))))
])), ])),
onCancel: showCancel ? cancel : null, onCancel: showCancel ? cancel : null,
); );