Reference

InteractiveViewer

InteractiveViewer

InteractiveViewer control. Build it with the interactive_viewer helper.

Example

interactive_viewer(
  content: text("InteractiveViewer"),
  expand: true,
  width: 240,
  height: 120,
  on_animation_end: ->(event) {}
)

Properties

  • alignment — Alignment of the content within the control.
  • boundary_margin
  • clip_behavior — How content overflowing the bounds is clipped.
  • constrained
  • content — The single child control rendered inside this control.
  • interaction_end_friction_coefficient
  • interaction_update_interval
  • max_scale
  • min_scale
  • pan_enabled
  • scale_enabled
  • scale_factor
  • trackpad_scroll_causes_scale

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_interaction_end — Fired on interaction end.
  • on_interaction_start — Fired on interaction start.
  • on_interaction_update — Fired on interaction update.
  • on_size_change — Fired when the control's size changes.

Reference

  • Family: shared
  • Widget type: interactiveviewer
  • Helper: interactive_viewer