Reference

CupertinoDatePicker

CupertinoDatePicker

CupertinoDatePicker control. Build it with the cupertino_date_picker helper.

Example

cupertino_date_picker(
  value: "Sample",
  bgcolor: :surface_container_high,
  expand: true,
  width: 240,
  on_change: ->(event) {}
)

Properties

  • bgcolor — Background color.
  • date_order
  • date_picker_mode
  • first_date
  • item_extent
  • last_date
  • locale
  • maximum_year
  • minimum_year
  • minute_interval
  • show_day_of_week
  • use_24h_format
  • value — The control's current value.

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: cupertinodatepicker
  • Helper: cupertino_date_picker