WidthBands extension
The band a window's width is in, asked of a BuildContext.
- on
Methods
-
band<
T> (Map< double, T> values) → T -
Available on BuildContext, provided by the WidthBands extension
The value for the band the window's width is in:valueskeyed by each band's least width, in ascending order. A window narrower than the first key takes the first value. -
widthBelow(
double width) → bool -
Available on BuildContext, provided by the WidthBands extension
Whether the window is narrower thanwidth. -
widthFrom(
double width) → bool -
Available on BuildContext, provided by the WidthBands extension
Whether the window iswidthwide or wider. -
wrap<
C, W> (C content, Map< double, W Function(C content)> wrappers) → W -
Available on BuildContext, provided by the WidthBands extension
contentas the band the window is in holds it: each ofwrappers, keyed as for band, builds the widget round it. A card whose padding changes at 768 is one card in two frames, not two cards. A wrapper names the type it takes ((Widget c) => Padding(..., child: c)): the map is typed before the content is.