From d06c8fa54e4e3e4a5eaf20a6d07d84499d136fed Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Tue, 11 Aug 2020 11:39:20 -0700 Subject: [PATCH] Updated old button references in dev/integration_tests/flutter_gallery ... full_screen_dialog_demo (#63491) --- .../lib/demo/material/full_screen_dialog_demo.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/integration_tests/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart b/dev/integration_tests/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart index a3a6eeb54e6..0e6e13137b5 100644 --- a/dev/integration_tests/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart +++ b/dev/integration_tests/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart @@ -126,13 +126,13 @@ class FullScreenDialogDemoState extends State { style: dialogTextStyle, ), actions: [ - FlatButton( + TextButton( child: const Text('CANCEL'), onPressed: () { Navigator.of(context).pop(false); // Pops the confirmation dialog but not the page. }, ), - FlatButton( + TextButton( child: const Text('DISCARD'), onPressed: () { Navigator.of(context).pop(true); // Returning true to _onWillPop will pop again. @@ -152,7 +152,7 @@ class FullScreenDialogDemoState extends State { appBar: AppBar( title: Text(_hasName ? _eventName : 'Event Name TBD'), actions: [ - FlatButton( + TextButton( child: Text('SAVE', style: theme.textTheme.bodyText2.copyWith(color: Colors.white)), onPressed: () { Navigator.pop(context, DismissDialogAction.save);