From e461787dc190a3925fa733b7ec8b0eea8f76e77d Mon Sep 17 00:00:00 2001 From: Midori <50433979+natsuk4ze@users.noreply.github.com> Date: Thu, 6 Jul 2023 18:54:20 +0900 Subject: [PATCH] Reopen #1740 Fix dialog text (#1931) --- experimental/material_3_demo/lib/component_screen.dart | 4 ++-- material_3_demo/lib/component_screen.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/experimental/material_3_demo/lib/component_screen.dart b/experimental/material_3_demo/lib/component_screen.dart index f2ce8d374..f3456df8d 100644 --- a/experimental/material_3_demo/lib/component_screen.dart +++ b/experimental/material_3_demo/lib/component_screen.dart @@ -733,11 +733,11 @@ class _DialogsState extends State { '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: [ 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(), ), ], diff --git a/material_3_demo/lib/component_screen.dart b/material_3_demo/lib/component_screen.dart index f2ce8d374..f3456df8d 100644 --- a/material_3_demo/lib/component_screen.dart +++ b/material_3_demo/lib/component_screen.dart @@ -733,11 +733,11 @@ class _DialogsState extends State { '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: [ 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(), ), ],