Commit b5671f1b authored by Kyle Bradshaw's avatar Kyle Bradshaw Committed by Eric Seidel

Gallery Cupertino Dialog demo snackbar fix (#9764)

Fixes #9757
parent b586a97a
......@@ -54,7 +54,7 @@ class _CupertinoDialogDemoState extends State<CupertinoDialogDemo> {
new CupertinoDialogAction(
child: const Text('Discard'),
isDestructive: true,
onPressed: () { Navigator.pop(context, 'OK'); }
onPressed: () { Navigator.pop(context, 'Discard'); }
),
new CupertinoDialogAction(
child: const Text('Cancel', style: const TextStyle(fontWeight: FontWeight.w600)),
......
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