From c13b354a020d1d38a2f1bb206e6844941866db69 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Tue, 11 Aug 2020 10:03:34 -0700 Subject: [PATCH] Updated old button references in dev/integration_tests/flutter_gallery leave_behind_demo (#63430) --- .../lib/demo/material/leave_behind_demo.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/integration_tests/flutter_gallery/lib/demo/material/leave_behind_demo.dart b/dev/integration_tests/flutter_gallery/lib/demo/material/leave_behind_demo.dart index d3327f146b..2837ad0bc1 100644 --- a/dev/integration_tests/flutter_gallery/lib/demo/material/leave_behind_demo.dart +++ b/dev/integration_tests/flutter_gallery/lib/demo/material/leave_behind_demo.dart @@ -124,7 +124,7 @@ class LeaveBehindDemoState extends State { Widget body; if (leaveBehindItems.isEmpty) { body = Center( - child: RaisedButton( + child: ElevatedButton( onPressed: () => handleDemoAction(LeaveBehindDemoAction.reset), child: const Text('Reset the list'), ), @@ -282,13 +282,13 @@ class _LeaveBehindListItem extends StatelessWidget { return AlertDialog( title: Text('Do you want to $action this item?'), actions: [ - FlatButton( + TextButton( child: const Text('Yes'), onPressed: () { Navigator.pop(context, true); // showDialog() returns true }, ), - FlatButton( + TextButton( child: const Text('No'), onPressed: () { Navigator.pop(context, false); // showDialog() returns false