1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Reopen #1740 Fix dialog text (#1931)

This commit is contained in:
Midori
2023-07-06 18:54:20 +09:00
committed by GitHub
parent f9e1a99d1a
commit e461787dc1
2 changed files with 4 additions and 4 deletions

View File

@@ -733,11 +733,11 @@ class _DialogsState extends State<Dialogs> {
'A dialog is a type of modal window that appears in front of app content to provide critical information, or prompt for a decision to be made.'),
actions: <Widget>[
TextButton(
child: const Text('Okay'),
child: const Text('Dismiss'),
onPressed: () => Navigator.of(context).pop(),
),
FilledButton(
child: const Text('Dismiss'),
child: const Text('Okay'),
onPressed: () => Navigator.of(context).pop(),
),
],

View File

@@ -733,11 +733,11 @@ class _DialogsState extends State<Dialogs> {
'A dialog is a type of modal window that appears in front of app content to provide critical information, or prompt for a decision to be made.'),
actions: <Widget>[
TextButton(
child: const Text('Okay'),
child: const Text('Dismiss'),
onPressed: () => Navigator.of(context).pop(),
),
FilledButton(
child: const Text('Dismiss'),
child: const Text('Okay'),
onPressed: () => Navigator.of(context).pop(),
),
],