Reference

Hero

Hero

Hero control. Build it with the hero helper.

Example

hero(
  image("assets/logo.png"),
  tag: "app-logo"
)

Properties

  • content — The single child control rendered inside this control.
  • tag
  • transition_on_user_gestures

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_size_change — Fired when the control's size changes.

Reference

  • Family: shared
  • Widget type: hero
  • Helper: hero