ContextExtensionss extension

BuildContext extension with some ui utils methods and getters

on

Properties

devicePixelRatio double

Available on BuildContext, provided by the ContextExtensionss extension

similar to MediaQuery.of(this).devicePixelRatio
no setter
height double

Available on BuildContext, provided by the ContextExtensionss extension

The same of MediaQuery.of(context).size.height Note: updates when you rezise your screen (like on a browser or desktop window)
no setter
isDarkMode bool

Available on BuildContext, provided by the ContextExtensionss extension

return true if the current app mode is dark
no setter
isLandscape bool

Available on BuildContext, provided by the ContextExtensionss extension

check if device is on landscape mode
no setter
isLargeTablet bool

Available on BuildContext, provided by the ContextExtensionss extension

True if the shortestSide is largest than 720p
no setter
isPhone bool

Available on BuildContext, provided by the ContextExtensionss extension

True if the shortestSide is smaller than 600p
no setter
isPortrait bool

Available on BuildContext, provided by the ContextExtensionss extension

check if device is on portrait mode
no setter
isSmallPhone bool

Available on BuildContext, provided by the ContextExtensionss extension

True if the shortestSide is smaller than 480p
no setter
isSmallTablet bool

Available on BuildContext, provided by the ContextExtensionss extension

True if the shortestSide is largest than 600p
no setter
isTablet bool

Available on BuildContext, provided by the ContextExtensionss extension

True if the current device is Tablet
no setter
mediaQuery MediaQueryData

Available on BuildContext, provided by the ContextExtensionss extension

similar to MediaQuery.of(context).padding
no setter
mediaQueryPadding EdgeInsets

Available on BuildContext, provided by the ContextExtensionss extension

similar to MediaQuery.of(context).padding
no setter
mediaQueryShortestSide double

Available on BuildContext, provided by the ContextExtensionss extension

get the shortestSide from screen
no setter
mediaQuerySize Size

Available on BuildContext, provided by the ContextExtensionss extension

The same of MediaQuery.of(context).size
no setter
mediaQueryViewInsets EdgeInsets

Available on BuildContext, provided by the ContextExtensionss extension

similar to MediaQuery.of(context).viewInsets
no setter
mediaQueryViewPadding EdgeInsets

Available on BuildContext, provided by the ContextExtensionss extension

similar to MediaQuery.of(context).viewPadding
no setter
orientation Orientation

Available on BuildContext, provided by the ContextExtensionss extension

similar to MediaQuery.of(context).orientation
no setter
textScaleFactor double

Available on BuildContext, provided by the ContextExtensionss extension

similar to MediaQuery.of(this).textScaleFactor
no setter
textTheme TextTheme

Available on BuildContext, provided by the ContextExtensionss extension

similar to MediaQuery.of(context).padding
no setter
theme ThemeData

Available on BuildContext, provided by the ContextExtensionss extension

similar to MediaQuery.of(context).padding
no setter
width double

Available on BuildContext, provided by the ContextExtensionss extension

The same of MediaQuery.of(context).size.width Note: updates when you rezise your screen (like on a browser or desktop window)
no setter