MagicResponsiveContext extension

Helper extension to check current breakpoint from Wind.

on

Properties

activeBreakpoint String

Available on BuildContext, provided by the MagicResponsiveContext extension

Current active breakpoint name from Wind.
no setter
isDesktop bool

Available on BuildContext, provided by the MagicResponsiveContext extension

Check if desktop (>= lg).
no setter
isPhone bool

Available on BuildContext, provided by the MagicResponsiveContext extension

Check if phone (< sm).
no setter
isTablet bool

Available on BuildContext, provided by the MagicResponsiveContext extension

Check if tablet (>= sm and < lg).
no setter
screenHeight double

Available on BuildContext, provided by the MagicResponsiveContext extension

Current screen height.
no setter
screenWidth double

Available on BuildContext, provided by the MagicResponsiveContext extension

Current screen width.
no setter

Methods

isAtLeast(String breakpoint) bool

Available on BuildContext, provided by the MagicResponsiveContext extension

Check if screen is at least the given breakpoint.