Skip to main content

CupertinoDialogAction

A button typically used in a CupertinoAlertDialog.

Examples​

Live example

CupertinoAlertDialog example​

python/controls/cupertino/cupertino-dialogs-alerts-panels/cupertino-alert-dialog-simple.py
loading...

Properties​

content​

A Control representing custom button content.

is_default_action​

If set to True, the button will have bold text. More than one action can have this property set to True in CupertinoAlertDialog.

Defaults to False.

is_destructive_action​

If set to True, the button's text color will be red. Use it for actions that destroy objects, such as an delete that deletes an email etc.

Defaults to False.

text​

The text displayed on a button.

text_style​

The text style to use for text on the button.

Value is of type TextStyle.

Events​

on_click​

Fires when a user clicks the button.