ContextExt extension
- on
Properties
- devicePixelRatio → double
-
Available on BuildContext, provided by the ContextExt extension
similar to MediaQuery.devicePixelRatioOf(context)no setter - height → double
-
Available on BuildContext, provided by the ContextExt extension
The same of MediaQuery.of(context).size.height Note: updates when you resize your screen (like on a browser or desktop window)no setter - iconColor → Color?
-
Available on BuildContext, provided by the ContextExt extension
give access to Theme.of(context).iconTheme.colorno setter - isDarkMode → bool
-
Available on BuildContext, provided by the ContextExt extension
Check if dark mode theme is enableno setter - isDesktop → bool
-
Available on BuildContext, provided by the ContextExt extension
same as isDesktopOrLessno setter - isDesktopOrLess → bool
-
Available on BuildContext, provided by the ContextExt extension
True if the width is smaller than 1200pno setter - isDesktopOrWider → bool
-
Available on BuildContext, provided by the ContextExt extension
True if the width is higher than 1200pno setter - isLandscape → bool
-
Available on BuildContext, provided by the ContextExt extension
check if device is on landscape modeno setter - isLargeTablet → bool
-
Available on BuildContext, provided by the ContextExt extension
True if the shortestSide is largest than 720pno setter - isLargeTabletOrLess → bool
-
Available on BuildContext, provided by the ContextExt extension
True if the width is smaller than 720pno setter - isLargeTabletOrWider → bool
-
Available on BuildContext, provided by the ContextExt extension
True if the width is higher than 720pno setter - isPhone → bool
-
Available on BuildContext, provided by the ContextExt extension
True if the shortestSide is smaller than 600pno setter - isPhoneOrLess → bool
-
Available on BuildContext, provided by the ContextExt extension
True if the width is smaller than 600pno setter - isPhoneOrWider → bool
-
Available on BuildContext, provided by the ContextExt extension
True if the width is higher than 600pno setter - isPortrait → bool
-
Available on BuildContext, provided by the ContextExt extension
check if device is on portrait modeno setter - isSmallTablet → bool
-
Available on BuildContext, provided by the ContextExt extension
True if the shortestSide is largest than 600pno setter - isSmallTabletOrLess → bool
-
Available on BuildContext, provided by the ContextExt extension
True if the width is smaller than 600pno setter - isSmallTabletOrWider → bool
-
Available on BuildContext, provided by the ContextExt extension
True if the width is higher than 600pno setter - isTablet → bool
-
Available on BuildContext, provided by the ContextExt extension
True if the current device is Tabletno setter - mediaQuery → MediaQueryData
-
Available on BuildContext, provided by the ContextExt extension
similar to MediaQuery.of(context).paddingno setter - mediaQueryPadding → EdgeInsets
-
Available on BuildContext, provided by the ContextExt extension
similar to MediaQuery.paddingOf(context)no setter - mediaQueryShortestSide → double
-
Available on BuildContext, provided by the ContextExt extension
get the shortestSide from screenno setter - mediaQuerySize → Size
-
Available on BuildContext, provided by the ContextExt extension
The same of MediaQuery.sizeOf(context)no setter - mediaQueryViewInsets → EdgeInsets
-
Available on BuildContext, provided by the ContextExt extension
similar to MediaQuery.viewInsetsOf(context)no setter - mediaQueryViewPadding → EdgeInsets
-
Available on BuildContext, provided by the ContextExt extension
similar to MediaQuery.viewPaddingOf(context)no setter - orientation → Orientation
-
Available on BuildContext, provided by the ContextExt extension
similar to MediaQuery.orientationOf(context)no setter -
Available on BuildContext, provided by the ContextExt extension
True if width be larger than 800no setter - textScaleFactor → TextScaler
-
Available on BuildContext, provided by the ContextExt extension
similar to MediaQuery.textScaleFactorOf(context)no setter - textTheme → TextTheme
-
Available on BuildContext, provided by the ContextExt extension
similar to MediaQuery.of(context).paddingno setter - theme → ThemeData
-
Available on BuildContext, provided by the ContextExt extension
similar to MediaQuery.of(context).paddingno setter - width → double
-
Available on BuildContext, provided by the ContextExt extension
The same of MediaQuery.of(context).size.width Note: updates when you resize 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 ContextExt 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 ContextExt extension
Divide the height proportionally by the given value -
responsiveValue<
T> ({T? watch, T? mobile, T? tablet, T? desktop}) → T -
Available on BuildContext, provided by the ContextExt 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 ContextExt extension
Gives you the power to get a portion of the width. Useful for responsive applications.