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