Updated references to obsolete Material button classes in benchmarks/test_apps/stocks (#65799)

This commit is contained in:
Hans Muller 2020-09-14 19:22:06 -07:00 committed by GitHub
parent d674fdf8f5
commit 0e4cca4f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ class _NotImplementedDialog extends StatelessWidget {
title: const Text('Not Implemented'),
content: const Text('This feature has not yet been implemented.'),
actions: <Widget>[
FlatButton(
TextButton(
onPressed: debugDumpApp,
child: Row(
children: <Widget>[
@ -40,7 +40,7 @@ class _NotImplementedDialog extends StatelessWidget {
],
),
),
FlatButton(
TextButton(
onPressed: () {
Navigator.pop(context, false);
},

View File

@ -72,13 +72,13 @@ class StockSettingsState extends State<StockSettings> {
title: const Text('Change mode?'),
content: const Text('Optimistic mode means everything is awesome. Are you sure you can handle that?'),
actions: <Widget>[
FlatButton(
TextButton(
child: const Text('NO THANKS'),
onPressed: () {
Navigator.pop(context, false);
},
),
FlatButton(
TextButton(
child: const Text('AGREE'),
onPressed: () {
Navigator.pop(context, true);