ResponsiveContext extension
Convenience accessors for the current window.
if (context.isAtLeastMedium) {
return Row(children: <Widget>[list, Expanded(child: detail)]);
}
These read the window, exactly like Breakpoints.of. Inside a widget that is not full-screen, prefer a LayoutBuilder plus Breakpoints.fromWidth.
- on
Properties
- isAtLeastExpanded → bool
-
Available on BuildContext, provided by the ResponsiveContext extension
Whether the window is at least ScreenSize.expanded.no setter - isAtLeastMedium → bool
-
Available on BuildContext, provided by the ResponsiveContext extension
Whether the window is at least ScreenSize.medium.no setter - isCompact → bool
-
Available on BuildContext, provided by the ResponsiveContext extension
Whether the window is phone-sized.no setter - isLandscape → bool
-
Available on BuildContext, provided by the ResponsiveContext extension
Whether the window is currently in landscape.no setter - pagePadding → EdgeInsets
-
Available on BuildContext, provided by the ResponsiveContext extension
Page padding for the current size class.no setter - screenSize → ScreenSize
-
Available on BuildContext, provided by the ResponsiveContext extension
The size class of the current window.no setter