This commit is contained in:
sion
2026-04-18 10:02:47 +08:00
parent a487302946
commit 0066615054
5256 changed files with 262726 additions and 224532 deletions

View File

@@ -169,8 +169,8 @@ class ModernDialog extends StatelessWidget {
final theme = Theme.of(context);
if (action.isPrimary) {
return FilledButton(
style: FilledButton.styleFrom(
return ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: action.isDestructive ? theme.colorScheme.error : theme.colorScheme.primary,
),
onPressed: () {
@@ -181,7 +181,7 @@ class ModernDialog extends StatelessWidget {
);
}
return TextButton(
return OutlinedButton(
onPressed: () {
Navigator.of(context).pop(action.returnValue);
action.onPressed?.call();