Reference

CupertinoContextMenuAction

CupertinoContextMenuAction

CupertinoContextMenuAction control. Build it with the cupertino_context_menu_action helper.

Example

cupertino_context_menu_action(
  content: text("CupertinoContextMenuAction"),
  expand: true,
  on_click: ->(event) {}
)

Properties

  • adaptive — Adapts to the platform (Material/Cupertino) when true.
  • content — The single child control rendered inside this control.
  • default
  • destructive
  • trailing_icon — Trailing icon.

Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).

Events

  • on_click — Fired when the control is clicked/tapped.

Reference

  • Family: cupertinos
  • Widget type: cupertinocontextmenuaction
  • Helper: cupertino_context_menu_action