Reference

CupertinoPicker

CupertinoPicker

CupertinoPicker control. Build it with the cupertino_picker helper.

Example

cupertino_picker(
  bgcolor: :surface_container_high,
  expand: true,
  width: 240,
  height: 120,
  on_change: ->(event) {}
)

Properties

  • bgcolor — Background color.
  • controls — The list of child controls.
  • default_selection_overlay_bgcolor — Default selection overlay background color.
  • diameter_ratio
  • item_extent
  • looping
  • magnification
  • off_axis_fraction
  • selected_index
  • selection_overlay
  • squeeze
  • use_magnifier

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_change — Fired when the value changes.
  • on_size_change — Fired when the control's size changes.

Reference

  • Family: cupertinos
  • Widget type: cupertinopicker
  • Helper: cupertino_picker