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).devicePixelRationo 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 darkno setter - isLandscape → bool
-
Available on BuildContext, provided by the ContextExtensionss extension
check if device is on landscape modeno setter - isLargeTablet → bool
-
Available on BuildContext, provided by the ContextExtensionss extension
True if the shortestSide is largest than 720pno setter - isPhone → bool
-
Available on BuildContext, provided by the ContextExtensionss extension
True if the shortestSide is smaller than 600pno setter - isPortrait → bool
-
Available on BuildContext, provided by the ContextExtensionss extension
check if device is on portrait modeno setter - isSmallPhone → bool
-
Available on BuildContext, provided by the ContextExtensionss extension
True if the shortestSide is smaller than 480pno setter - isSmallTablet → bool
-
Available on BuildContext, provided by the ContextExtensionss extension
True if the shortestSide is largest than 600pno setter - isTablet → bool
-
Available on BuildContext, provided by the ContextExtensionss extension
True if the current device is Tabletno setter - mediaQuery → MediaQueryData
-
Available on BuildContext, provided by the ContextExtensionss extension
similar to MediaQuery.of(context).paddingno setter - mediaQueryPadding → EdgeInsets
-
Available on BuildContext, provided by the ContextExtensionss extension
similar to MediaQuery.of(context).paddingno setter - mediaQueryShortestSide → double
-
Available on BuildContext, provided by the ContextExtensionss extension
get the shortestSide from screenno setter - mediaQuerySize → Size
-
Available on BuildContext, provided by the ContextExtensionss extension
The same of MediaQuery.of(context).sizeno setter - mediaQueryViewInsets → EdgeInsets
-
Available on BuildContext, provided by the ContextExtensionss extension
similar to MediaQuery.of(context).viewInsetsno setter - mediaQueryViewPadding → EdgeInsets
-
Available on BuildContext, provided by the ContextExtensionss extension
similar to MediaQuery.of(context).viewPaddingno setter - orientation → Orientation
-
Available on BuildContext, provided by the ContextExtensionss extension
similar to MediaQuery.of(context).orientationno setter - textScaleFactor → double
-
Available on BuildContext, provided by the ContextExtensionss extension
similar to MediaQuery.of(this).textScaleFactorno setter - textTheme → TextTheme
-
Available on BuildContext, provided by the ContextExtensionss extension
similar to MediaQuery.of(context).paddingno setter - theme → ThemeData
-
Available on BuildContext, provided by the ContextExtensionss extension
similar to MediaQuery.of(context).paddingno 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