Widgets

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 — Sets the default property.
  • destructive — Sets the destructive property.
  • trailing_icon — Trailing icon.

Common layout and animation properties

  • badge — Badge drawn on the corner of the control.
  • col — Responsive column span (1-12) per breakpoint.
  • data — Arbitrary value you can attach to the control and read back in handlers.
  • disabled — Disables interaction when true.
  • expand — Fills the available space along the parent's main axis when true.
  • expand_loose — Like expand, but only grows up to the child's natural size.
  • key — Stable identity used to preserve state across rebuilds.
  • opacity — Opacity from 0.0 (transparent) to 1.0 (opaque).
  • rtl — Renders right-to-left when true.
  • tooltip — Text shown on hover/long-press.
  • visible — Hides the control when false.

Events

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

Reference

  • Family: cupertinos
  • Widget type: cupertinocontextmenuaction
  • Helpers: cupertino_context_menu_action, cupertinocontextmenuaction