Reference

CupertinoRadio

CupertinoRadio

CupertinoRadio control. Build it with the cupertino_radio helper.

Example

cupertino_radio(
  value: "Sample",
  label: "Label",
  expand: true,
  width: 240,
  on_animation_end: ->(event) {}
)

Properties

  • active_color — Active color.
  • autofocus — Requests focus when first shown.
  • fill_color — Fill color.
  • focus_color — Color shown while focused.
  • inactive_color — Inactive color.
  • label — Text label shown for the control.
  • label_position
  • mouse_cursor — Cursor shown when hovering the control.
  • toggleable
  • use_checkmark_style — Use checkmark style.
  • 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_blur — Fired when the control loses focus.
  • on_focus — Fired when the control gains focus.
  • on_size_change — Fired when the control's size changes.

Reference

  • Family: cupertinos
  • Widget type: cupertinoradio
  • Helper: cupertino_radio