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

Updated old button references in dev/integration_tests/flutter_gallery leave_behind_demo (#63430)

parent 0ec0bf50
...@@ -124,7 +124,7 @@ class LeaveBehindDemoState extends State<LeaveBehindDemo> { ...@@ -124,7 +124,7 @@ class LeaveBehindDemoState extends State<LeaveBehindDemo> {
Widget body; Widget body;
if (leaveBehindItems.isEmpty) { if (leaveBehindItems.isEmpty) {
body = Center( body = Center(
child: RaisedButton( child: ElevatedButton(
onPressed: () => handleDemoAction(LeaveBehindDemoAction.reset), onPressed: () => handleDemoAction(LeaveBehindDemoAction.reset),
child: const Text('Reset the list'), child: const Text('Reset the list'),
), ),
...@@ -282,13 +282,13 @@ class _LeaveBehindListItem extends StatelessWidget { ...@@ -282,13 +282,13 @@ class _LeaveBehindListItem extends StatelessWidget {
return AlertDialog( return AlertDialog(
title: Text('Do you want to $action this item?'), title: Text('Do you want to $action this item?'),
actions: <Widget>[ actions: <Widget>[
FlatButton( TextButton(
child: const Text('Yes'), child: const Text('Yes'),
onPressed: () { onPressed: () {
Navigator.pop(context, true); // showDialog() returns true Navigator.pop(context, true); // showDialog() returns true
}, },
), ),
FlatButton( TextButton(
child: const Text('No'), child: const Text('No'),
onPressed: () { onPressed: () {
Navigator.pop(context, false); // showDialog() returns false Navigator.pop(context, false); // showDialog() returns false
......
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