NiceResponsiveContext extension

Extension on BuildContext for easy access to responsive info.

on

Properties

breakpoint NiceBreakpoint

Available on BuildContext, provided by the NiceResponsiveContext extension

Get current breakpoint
no setter
formFactor NiceFormFactor

Available on BuildContext, provided by the NiceResponsiveContext extension

Get current form factor
no setter
isDesktop bool

Available on BuildContext, provided by the NiceResponsiveContext extension

Is desktop form factor
no setter
isLandscape bool

Available on BuildContext, provided by the NiceResponsiveContext extension

Is landscape
no setter
isPhone bool

Available on BuildContext, provided by the NiceResponsiveContext extension

Is phone form factor
no setter
isPortrait bool

Available on BuildContext, provided by the NiceResponsiveContext extension

Is portrait
no setter
isTablet bool

Available on BuildContext, provided by the NiceResponsiveContext extension

Is tablet form factor
no setter
orientation Orientation

Available on BuildContext, provided by the NiceResponsiveContext extension

Get orientation
no setter
padding EdgeInsets

Available on BuildContext, provided by the NiceResponsiveContext extension

Get padding (safe areas)
no setter
pixelRatio double

Available on BuildContext, provided by the NiceResponsiveContext extension

Get device pixel ratio
no setter
screenHeight double

Available on BuildContext, provided by the NiceResponsiveContext extension

Get screen height
no setter
screenWidth double

Available on BuildContext, provided by the NiceResponsiveContext extension

Get screen width
no setter
textScaleFactor double

Available on BuildContext, provided by the NiceResponsiveContext extension

Get text scale factor
no setter
viewInsets EdgeInsets

Available on BuildContext, provided by the NiceResponsiveContext extension

Get view insets (keyboard, etc.)
no setter