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).height
no setter
isDarkMode bool

Available on BuildContext, provided by the ContextExtension extension

Equivalent to Theme.of(context).brightness == Brightness.dark
no setter
isKeyboardOpen bool

Available on BuildContext, provided by the ContextExtension extension

Checks if keyboard is open
no setter
isLandscape bool

Available on BuildContext, provided by the ContextExtension extension

Equivalent to MediaQuery.orientationOf(context) == Orientation.landscape
no setter
isPhone bool

Available on BuildContext, provided by the ContextExtension extension

Equivalent to MediaQuery.sizeOf(context).shortestSide < 600
no setter
isPortrait bool

Available on BuildContext, provided by the ContextExtension extension

Equivalent to MediaQuery.orientationOf(context) == Orientation.portrait
no setter
isTablet bool

Available on BuildContext, provided by the ContextExtension extension

Equivalent to MediaQuery.sizeOf(context).shortestSide >= 600
no 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).shortestSide
no 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).textTheme
no 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).width
no setter

Methods

closeKeyboard() → void

Available on BuildContext, provided by the ContextExtension extension

Closes keyboard if open