Reference

FilledTonalButton

FilledTonalButton

FilledTonalButton control. Build it with the filled_tonal_button helper.

Example

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

Properties

  • adaptive — Adapts to the platform (Material/Cupertino) when true.
  • autofocus — Requests focus when first shown.
  • bgcolor — Background color.
  • clip_behavior — How content overflowing the bounds is clipped.
  • color — Foreground color.
  • content — The single child control rendered inside this control.
  • elevation — Shadow depth (z-height).
  • 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: filledtonalbutton
  • Helper: filled_tonal_button