ContextExtension extension
BuildContext EXTENSION
- on
Properties
- devicePixelRatio → double
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.devicePixelRatioOf(context)no setter - height → double
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.sizeOf(context).heightno setter - isDarkMode → bool
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to Theme.of(context).brightness == Brightness.darkno setter - isKeyboardOpen → bool
-
Available on BuildContext, provided by the ContextExtension extension
Checks if keyboard is openno setter - isLandscape → bool
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.orientationOf(context) == Orientation.landscapeno setter - isPhone → bool
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.sizeOf(context).shortestSide < 600no setter - isPortrait → bool
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.orientationOf(context) == Orientation.portraitno setter - isTablet → bool
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.sizeOf(context).shortestSide >= 600no setter - mediaQuery → MediaQueryData
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.of(context)no setter - mediaQueryPadding → EdgeInsets
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.paddingOf(context)no setter - mediaQueryShortestSide → double
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.sizeOf(context).shortestSideno setter - mediaQuerySize → Size
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.sizeOf(context)no setter - mediaQueryViewInsets → EdgeInsets
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.viewInsetsOf(context)no setter - mediaQueryViewPadding → EdgeInsets
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.viewPaddingOf(context)no setter - orientation → Orientation
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.orientationOf(context)no setter - textScaleFactor → double
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.textScaleFactorOf(context)no setter - textTheme → TextTheme
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to Theme.of(context).textThemeno setter - theme → ThemeData
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to Theme.of(context)no setter - view → FlutterView
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to View.of(context)no setter - width → double
-
Available on BuildContext, provided by the ContextExtension extension
Equivalent to MediaQuery.sizeOf(context).widthno setter
Methods
-
closeKeyboard(
) → void -
Available on BuildContext, provided by the ContextExtension extension
Closes keyboard if open