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> {
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: <Widget>[
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
......
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