ContextExtensionss extension
- 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 - iconColor → Color?
-
Available on BuildContext, provided by the ContextExtensionss extension
give access to Theme.of(context).iconTheme.colorno setter - isDarkMode → bool
-
Available on BuildContext, provided by the ContextExtensionss extension
Check if dark mode theme is enableno 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 - 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 -
Available on BuildContext, provided by the ContextExtensionss extension
True if width be larger than 800no 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
Methods
-
heightTransformer(
{double dividedBy = 1, double reducedBy = 0.0}) → double -
Available on BuildContext, provided by the ContextExtensionss extension
Gives you the power to get a portion of the height. Useful for responsive applications. -
ratio(
{double dividedBy = 1, double reducedByW = 0.0, double reducedByH = 0.0}) → double -
Available on BuildContext, provided by the ContextExtensionss extension
Divide the height proportionally by the given value -
widthTransformer(
{double dividedBy = 1, double reducedBy = 0.0}) → double -
Available on BuildContext, provided by the ContextExtensionss extension
Gives you the power to get a portion of the width. Useful for responsive applications.