CupertinoDialogAction
Examples#
See these.
        Inherits: Control
A dialog action button.
Typically used as a child of CupertinoAlertDialog.actions.
Properties
- 
          content(StrOrControl) –The content of this action button. 
- 
          default(bool) –Whether this action is a default action. 
- 
          destructive(bool) –If set to True, this button's text color will be red.
- 
          text_style(TextStyle | None) –The text style to use for text in this button. 
Events
- 
          on_click(ControlEventHandler[CupertinoDialogAction] | None) –Called when a user clicks this button. 
Properties#
instance-attribute
  
#
content: StrOrControl
The content of this action button.
Raises:
- 
              ValueError–If contentis neither a string nor a visible Control.
class-attribute
      instance-attribute
  
#
default: bool = False
Whether this action is a default action. In this case, the button will have bold text.
Info
Multiple actions can have this property set to True
in a CupertinoAlertDialog.
class-attribute
      instance-attribute
  
#
destructive: bool = False
If set to True, this button's text color will be red.
Typically used for actions that destroy objects, such as an delete that deletes an email etc.
class-attribute
      instance-attribute
  
#
text_style: TextStyle | None = None
The text style to use for text in this button.
Can be useful when content is a string.
Events#
class-attribute
      instance-attribute
  
#
on_click: (
    ControlEventHandler[CupertinoDialogAction] | None
) = None
Called when a user clicks this button.