pub fn adaptive<C: PieceSeq>(children: C) -> Adaptive<C>Expand description
A stack that is a row on a regular width and a column on a compact one, re-laid out (never rebuilt) as the window crosses the breakpoint, so its children keep their state. The shape a label-plus-control-plus-result line wants, where wrapping members independently would tear apart what reads as one sentence.
ⓘ
adaptive((label(t), slider(v), label(move || v.get().to_string()))).spacing(Space::S)Stacked, the children align leading: they read as a control and the line it produced, and
a centered member floats away from what it belongs to. at (default
WidthClass::Compact) is the widest class that stacks.