BuildContextHelperExtension extension

on

Properties

arguments Object?
no setter
color BuildColor
It is a simplification of the Theme.of(context) statement.
no setter
height double?
Do that:
no setter
iconTheme IconThemeData
no setter
media BuildMedia
It is a simplification of the MediaQuery.of(context) statement.
no setter
messenger ScaffoldMessengerState
no setter
no setter
textTheme TextTheme
DO THAT:
no setter
theme ThemeData
DO THAT:
no setter
width double?
Do that:
no setter

Methods

clearSnackBars() → void
goBack() → void
Do that:
hideCurrentSnackBar([SnackBarClosedReason reason = SnackBarClosedReason.remove]) → void
removeCurrentSnackBar([SnackBarClosedReason reason = SnackBarClosedReason.remove]) → void
showSnackBar(SnackBar snackBar, {void onClosed(SnackBarClosedReason)?, VoidCallback? onVisible}) ScaffoldFeatureController<SnackBar, SnackBarClosedReason>
to(Widget page, {bool transition = true}) Future<void>
Do that:
toAndRemoveUntil(Widget page, bool predicate(Route), {bool transition = true}) Future<void>
Do that:
toNamed(String routeName, {Object? arguments}) Future<void>
Do that:
toNamedAndRemoveUntil(String newRouteName, bool predicate(Route), {Object? arguments}) Future<void>
Do that:
toReplacement(Widget page, {bool transition = true}) Future<void>
Do that:
toTransparentPage(Widget page, {Duration duration = Duration.zero}) Future<void>
Usually used with a SlidingPanel