Reference

DropdownOption

DropdownOption

DropdownOption control. Build it with the dropdown_option helper.

Example

dropdown_option(
  text: "Sample",
  content: text("DropdownOption"),
  expand: true
)

Properties

  • content — The single child control rendered inside this control.
  • leading_icon — Leading icon.
  • style — Style overrides for the control.
  • text — Text content of the control.
  • trailing_icon — Trailing icon.

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: dropdownoption
  • Helper: dropdown_option