BuildContextExtension extension
A set of useful extensions for BuildContext.
- on
Properties
- focus → FocusScopeNode
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns the nearestFocusScopeNodeinstance for the current context.no setter - hasMaterialL10n → bool
-
Available on BuildContext, provided by the BuildContextExtension extension
Returnstrueif the currentBuildContexthas aMaterialLocalizationsinstance associated with it.no setter - materialL10n → MaterialLocalizations
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns theMaterialLocalizationsinstance for the current context.no setter - media → MediaQueryData
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns the nearestMediaQueryDatainstance for the current context.no setter - messenger → ScaffoldMessengerState
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns the nearestScaffoldMessengerStateinstance for the current context.no setter - padding → EdgeInsets
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns the padding from the nearestMediaQueryDatainstance for the current context.no setter - scaffold → ScaffoldState
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns the nearestScaffoldStateinstance for the current context.no setter - theme → ThemeData
-
Available on BuildContext, provided by the BuildContextExtension extension
Returns theThemeDatainstance for the current context.no setter
Methods
-
showSnackBar(
SnackBar snackBar) → ScaffoldFeatureController< SnackBar, SnackBarClosedReason> -
Available on BuildContext, provided by the BuildContextExtension extension
Shows aSnackBarat the bottom of the screen.