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 -
responsiveValue<
T> ({T? mobile, T? tablet, T? desktop, T? watch}) → T -
Available on BuildContext, provided by the ContextExtensionss extension
Returns a specific value according to the screen size if the device width is higher than or equal to 1200 returndesktop
value. if the device width is higher than or equal to 600 and less than 1200 returntablet
value. if the device width is less than 300 returnwatch
value. in other cases returnmobile
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.