How do you use CupertinoAlertDialog?

showCupertinoDialog( context: ctx, builder: (_) => CupertinoAlertDialog( title: Text(“This is the title”), content: Text(“This is the content”), actions: [ // Close the dialog // You can use the CupertinoDialogAction widget instead CupertinoButton( child: Text(‘Cancel’), onPressed: () { Navigator. of(ctx).

Read more