mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 23:08:59 +00:00
adds new components to the gallery
This commit is contained in:
@@ -6,9 +6,7 @@ class AlertDialogPage extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return CupertinoPageScaffold(
|
||||
navigationBar: const CupertinoNavigationBar(
|
||||
middle: Text('Alert Dialog'),
|
||||
),
|
||||
navigationBar: const CupertinoNavigationBar(middle: Text('Alert Dialog')),
|
||||
child: Center(
|
||||
child: CupertinoButton(
|
||||
child: const Text('Show Alert Dialog'),
|
||||
@@ -25,6 +23,13 @@ class AlertDialogPage extends StatelessWidget {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
CupertinoDialogAction(
|
||||
isDefaultAction: true,
|
||||
child: const Text('NO'),
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user