Widgets

VerticalDivider

VerticalDivider

VerticalDivider control. Build it with the vertical_divider helper.

Example

vertical_divider(
  color: :blue_600,
  expand: true,
  width: 240
)

Properties

  • color — Foreground color.
  • leading_indent — Sets the leading indent property.
  • radius — Sets the radius property.
  • thickness — Sets the thickness property.
  • trailing_indent — Sets the trailing indent property.

Common layout and animation properties

  • badge — Badge drawn on the corner of the control.
  • col — Responsive column span (1-12) per breakpoint.
  • data — Arbitrary value you can attach to the control and read back in handlers.
  • disabled — Disables interaction when true.
  • expand — Fills the available space along the parent's main axis when true.
  • expand_loose — Like expand, but only grows up to the child's natural size.
  • key — Stable identity used to preserve state across rebuilds.
  • opacity — Opacity from 0.0 (transparent) to 1.0 (opaque).
  • rtl — Renders right-to-left when true.
  • tooltip — Text shown on hover/long-press.
  • visible — Hides the control when false.
  • width — Fixed width in logical pixels.

Reference

  • Family: materials
  • Widget type: verticaldivider
  • Helpers: vertical_divider, verticaldivider