Reference

Radio

Radio

Radio control. Build it with the radio helper.

Example

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

Properties

  • active_color — Active color.
  • adaptive — Adapts to the platform (Material/Cupertino) when true.
  • autofocus — Requests focus when first shown.
  • fill_color — Fill color.
  • focus_color — Color shown while focused.
  • hover_color — Color shown while hovered.
  • label — Text label shown for the control.
  • label_position
  • label_style — Label style.
  • mouse_cursor — Cursor shown when hovering the control.
  • overlay_color — Overlay color.
  • splash_radius — Splash radius.
  • toggleable
  • value — The control's current value.
  • visual_density — Compactness of the control's layout.

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: materials
  • Widget type: radio
  • Helper: radio