Reference

Segment

Segment

Segment control. Build it with the segment helper.

Example

segment(
  value: "Sample",
  label: "Label",
  icon: "add",
  expand: true
)

Properties

  • icon — Icon name shown by the control.
  • label — Text label shown for the control.
  • 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_*, …).

Reference

  • Family: materials
  • Widget type: segment
  • Helper: segment