Unverified Commit d06c8fa5 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Updated old button references in dev/integration_tests/flutter_gallery ......

Updated old button references in dev/integration_tests/flutter_gallery ... full_screen_dialog_demo (#63491)
parent c86d090e
...@@ -126,13 +126,13 @@ class FullScreenDialogDemoState extends State<FullScreenDialogDemo> { ...@@ -126,13 +126,13 @@ class FullScreenDialogDemoState extends State<FullScreenDialogDemo> {
style: dialogTextStyle, style: dialogTextStyle,
), ),
actions: <Widget>[ actions: <Widget>[
FlatButton( TextButton(
child: const Text('CANCEL'), child: const Text('CANCEL'),
onPressed: () { onPressed: () {
Navigator.of(context).pop(false); // Pops the confirmation dialog but not the page. Navigator.of(context).pop(false); // Pops the confirmation dialog but not the page.
}, },
), ),
FlatButton( TextButton(
child: const Text('DISCARD'), child: const Text('DISCARD'),
onPressed: () { onPressed: () {
Navigator.of(context).pop(true); // Returning true to _onWillPop will pop again. Navigator.of(context).pop(true); // Returning true to _onWillPop will pop again.
...@@ -152,7 +152,7 @@ class FullScreenDialogDemoState extends State<FullScreenDialogDemo> { ...@@ -152,7 +152,7 @@ class FullScreenDialogDemoState extends State<FullScreenDialogDemo> {
appBar: AppBar( appBar: AppBar(
title: Text(_hasName ? _eventName : 'Event Name TBD'), title: Text(_hasName ? _eventName : 'Event Name TBD'),
actions: <Widget> [ actions: <Widget> [
FlatButton( TextButton(
child: Text('SAVE', style: theme.textTheme.bodyText2.copyWith(color: Colors.white)), child: Text('SAVE', style: theme.textTheme.bodyText2.copyWith(color: Colors.white)),
onPressed: () { onPressed: () {
Navigator.pop(context, DismissDialogAction.save); Navigator.pop(context, DismissDialogAction.save);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment