BuildContextExtensions extension
Convenient access to commonly used inherited Flutter properties.
- on
Properties
- brightness → Brightness
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - canPop → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns whether the current route can be popped.no setter - colorScheme → ColorScheme
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - focusScope → FocusScopeNode
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - isCompact → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
Compact window breakpoint.no setter - isDarkMode → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - isExpanded → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
Expanded window breakpoint.no setter - isKeyboardVisible → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - isLandscape → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - isLightMode → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - isLtr → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - isMedium → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
Medium window breakpoint.no setter - isMounted → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
Whether the current BuildContext is still mounted.no setter - isPortrait → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - isRtl → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - keyboardHeight → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - mediaQuery → MediaQueryData
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - modalRoute → ModalRoute?
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter -
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - orientation → Orientation
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - scaffoldMessenger → ScaffoldMessengerState
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - screenHeight → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - screenPadding → EdgeInsets
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - screenSize → Size
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - screenWidth → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - textDirection → TextDirection
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - textTheme → TextTheme
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - theme → ThemeData
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - viewInsets → EdgeInsets
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - viewPadding → EdgeInsets
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter
Methods
-
pop<
T extends Object?> ([T? result]) → void -
Available on BuildContext, provided by the BuildContextExtensions extension
Pops the current route. -
showSnackBar(
String message, {Duration duration = const Duration(seconds: 3), SnackBarAction? action, SnackBarBehavior? behavior}) → void -
Available on BuildContext, provided by the BuildContextExtensions extension
Displays a Material snackbar after clearing the current one. -
unfocus(
) → void -
Available on BuildContext, provided by the BuildContextExtensions extension
Removes focus from the currently focused input.