Updated old button references in dev/integration_tests/flutter_gallery ... full_screen_dialog_demo (#63491)

This commit is contained in:
Hans Muller 2020-08-11 11:39:20 -07:00 committed by GitHub
parent c86d090e6f
commit d06c8fa54e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,13 +126,13 @@ class FullScreenDialogDemoState extends State<FullScreenDialogDemo> {
style: dialogTextStyle,
),
actions: <Widget>[
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<FullScreenDialogDemo> {
appBar: AppBar(
title: Text(_hasName ? _eventName : 'Event Name TBD'),
actions: <Widget> [
FlatButton(
TextButton(
child: Text('SAVE', style: theme.textTheme.bodyText2.copyWith(color: Colors.white)),
onPressed: () {
Navigator.pop(context, DismissDialogAction.save);