ContextExtension extension
Extension providing additional functionality for BuildContext.
- on
Properties
- devicePixelRatio → double
-
Available on BuildContext, provided by the ContextExtension extension
similar to MediaQuery.devicePixelRatioOf(context)no setter - height → double
-
Available on BuildContext, provided by the ContextExtension 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 ContextExtension extension
give access to Theme.of(context).iconTheme.colorno setter - isDarkMode → bool
-
Available on BuildContext, provided by the ContextExtension extension
Check if dark mode theme is enableno setter - isDesktop → bool
-
Available on BuildContext, provided by the ContextExtension extension
same as isDesktopOrLessno setter - isDesktopOrLess → bool
-
Available on BuildContext, provided by the ContextExtension extension
True if the width is smaller than 1200pno setter - isDesktopOrWider → bool
-
Available on BuildContext, provided by the ContextExtension extension
True if the width is higher than 1200pno setter - isLandscape → bool
-
Available on BuildContext, provided by the ContextExtension extension
check if device is on landscape modeno setter - isLargeTablet → bool
-
Available on BuildContext, provided by the ContextExtension extension
True if the shortestSide is largest than 720pno setter - isLargeTabletOrLess → bool
-
Available on BuildContext, provided by the ContextExtension extension
True if the width is smaller than 720pno setter - isLargeTabletOrWider → bool
-
Available on BuildContext, provided by the ContextExtension extension
True if the width is higher than 720pno setter - isPhone → bool
-
Available on BuildContext, provided by the ContextExtension extension
True if the shortestSide is smaller than 600pno setter - isPhoneOrLess → bool
-
Available on BuildContext, provided by the ContextExtension extension
True if the width is smaller than 600pno setter - isPhoneOrWider → bool
-
Available on BuildContext, provided by the ContextExtension extension
True if the width is higher than 600pno setter - isPortrait → bool
-
Available on BuildContext, provided by the ContextExtension extension
check if device is on portrait modeno setter - isSmallTablet → bool
-
Available on BuildContext, provided by the ContextExtension extension
True if the shortestSide is largest than 600pno setter - isSmallTabletOrLess → bool
-
Available on BuildContext, provided by the ContextExtension extension
True if the width is smaller than 600pno setter - isSmallTabletOrWider → bool
-
Available on BuildContext, provided by the ContextExtension extension
True if the width is higher than 600pno setter - isTablet → bool
-
Available on BuildContext, provided by the ContextExtension extension
True if the current device is Tabletno setter - mediaQuery → MediaQueryData
-
Available on BuildContext, provided by the ContextExtension extension
similar to MediaQuery.of(context).paddingno setter - mediaQueryPadding → EdgeInsets
-
Available on BuildContext, provided by the ContextExtension extension
similar to MediaQuery.paddingOf(context)no setter - mediaQueryShortestSide → double
-
Available on BuildContext, provided by the ContextExtension extension
get the shortestSide from screenno setter - mediaQuerySize → Size
-
Available on BuildContext, provided by the ContextExtension extension
The same of MediaQuery.sizeOf(context)no setter - mediaQueryViewInsets → EdgeInsets
-
Available on BuildContext, provided by the ContextExtension extension
similar to MediaQuery.viewInsetsOf(context)no setter - mediaQueryViewPadding → EdgeInsets
-
Available on BuildContext, provided by the ContextExtension extension
similar to MediaQuery.viewPaddingOf(context)no setter - orientation → Orientation
-
Available on BuildContext, provided by the ContextExtension extension
similar to MediaQuery.orientationOf(context)no setter -
Available on BuildContext, provided by the ContextExtension extension
True if width be larger than 800no setter - textScaleFactor → TextScaler
-
Available on BuildContext, provided by the ContextExtension extension
similar to MediaQuery.textScaleFactorOf(context)no setter - textTheme → TextTheme
-
Available on BuildContext, provided by the ContextExtension extension
similar to MediaQuery.of(context).paddingno setter - theme → ThemeData
-
Available on BuildContext, provided by the ContextExtension extension
similar to MediaQuery.of(context).paddingno setter - width → double
-
Available on BuildContext, provided by the ContextExtension 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 ContextExtension 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 ContextExtension extension
Divide the height proportionally by the given value -
widthTransformer(
{double dividedBy = 1, double reducedBy = 0.0}) → double -
Available on BuildContext, provided by the ContextExtension extension
Gives you the power to get a portion of the width. Useful for responsive applications.