BuildContextExtension extension
A set of useful extensions for BuildContext
.
- on
Properties
- focus → FocusScopeNode
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns the nearestFocusScopeNode
instance for the current context.no setter - hasMaterialL10n → bool
-
Available on BuildContext, provided by the BuildContextExtension extension
Returnstrue
if the currentBuildContext
has aMaterialLocalizations
instance associated with it.no setter - materialL10n → MaterialLocalizations
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns theMaterialLocalizations
instance for the current context.no setter - media → MediaQueryData
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns the nearestMediaQueryData
instance for the current context.no setter - messenger → ScaffoldMessengerState
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns the nearestScaffoldMessengerState
instance for the current context.no setter - padding → EdgeInsets
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns the padding from the nearestMediaQueryData
instance for the current context.no setter - scaffold → ScaffoldState
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns the nearestScaffoldState
instance for the current context.no setter - theme → ThemeData
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns theThemeData
instance for the current context.no setter
Methods
-
showSnackBar(
SnackBar snackBar) → ScaffoldFeatureController< SnackBar, SnackBarClosedReason> -
Available on BuildContext, provided by the BuildContextExtension extension
Shows aSnackBar
at the bottom of the screen.