Reference

CupertinoTintedButton

CupertinoTintedButton

CupertinoTintedButton control. Build it with the cupertino_tinted_button helper.

Example

cupertino_tinted_button(
  content: text("CupertinoTintedButton"),
  url: "https://example.com",
  icon: "add",
  color: :blue_600,
  on_click: ->(event) {}
)

Properties

  • alignment — Alignment of the content within the control.
  • autofocus — Requests focus when first shown.
  • bgcolor — Background color.
  • border_radius — Corner radius.
  • color — Foreground color.
  • content — The single child control rendered inside this control.
  • disabled_bgcolor — Disabled background color.
  • focus_color — Color shown while focused.
  • icon — Icon name shown by the control.
  • icon_color — Color of the icon.
  • min_size
  • mouse_cursor — Cursor shown when hovering the control.
  • opacity_on_click
  • padding — Inner spacing between the border and the content.
  • size
  • url — URL the control loads or links to.

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

Events

  • on_animation_end — Fired when an animation completes.
  • on_blur — Fired when the control loses focus.
  • on_click — Fired when the control is clicked/tapped.
  • on_focus — Fired when the control gains focus.
  • on_long_press — Fired on a long press.
  • on_size_change — Fired when the control's size changes.

Reference

  • Family: cupertinos
  • Widget type: cupertinotintedbutton
  • Helper: cupertino_tinted_button