Reference

OutlinedButton

OutlinedButton

OutlinedButton control. Build it with the outlined_button helper.

Example

outlined_button(
  content: text("OutlinedButton"),
  url: "https://example.com",
  icon: "add",
  expand: true,
  on_click: ->(event) {}
)

Properties

  • adaptive — Adapts to the platform (Material/Cupertino) when true.
  • autofocus — Requests focus when first shown.
  • clip_behavior — How content overflowing the bounds is clipped.
  • content — The single child control rendered inside this control.
  • icon — Icon name shown by the control.
  • icon_color — Color of the icon.
  • style — Style overrides for the control.
  • 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_hover — Fired when the pointer enters/leaves the control.
  • on_long_press — Fired on a long press.
  • on_size_change — Fired when the control's size changes.

Reference

  • Family: materials
  • Widget type: outlinedbutton
  • Helper: outlined_button