BuildContextX extension
BuildContext extensions for safe usage and theming
- on
Properties
- colorScheme → ColorScheme
-
Available on BuildContext, provided by the BuildContextX extension
no setter - devicePixelRatio → double
-
Available on BuildContext, provided by the BuildContextX extension
no setter - isDesktop → bool
-
Available on BuildContext, provided by the BuildContextX extension
no setter - isLandscape → bool
-
Available on BuildContext, provided by the BuildContextX extension
no setter - isMobile → bool
-
Available on BuildContext, provided by the BuildContextX extension
Responsive breakpointsno setter - isMounted → bool
-
Available on BuildContext, provided by the BuildContextX extension
Safe context checkno setter - isPortrait → bool
-
Available on BuildContext, provided by the BuildContextX extension
Media queryno setter - isTablet → bool
-
Available on BuildContext, provided by the BuildContextX extension
no setter - screenHeight → double
-
Available on BuildContext, provided by the BuildContextX extension
no setter - screenSize → Size
-
Available on BuildContext, provided by the BuildContextX extension
Screen dimensionsno setter - screenWidth → double
-
Available on BuildContext, provided by the BuildContextX extension
no setter - textTheme → TextTheme
-
Available on BuildContext, provided by the BuildContextX extension
no setter - theme → ThemeData
-
Available on BuildContext, provided by the BuildContextX extension
Theme datano setter
Methods
-
pop<
T> ([T? result]) → void -
Available on BuildContext, provided by the BuildContextX extension
-
pushNamed<
T> (String routeName, {Object? arguments}) → Future< T?> -
Available on BuildContext, provided by the BuildContextX extension
Safe navigation -
showCustomBottomSheet<
T> ({required WidgetBuilder builder, bool isDismissible = true}) → Future< T?> -
Available on BuildContext, provided by the BuildContextX extension
Safe bottom sheet -
showCustomDialog<
T> ({required WidgetBuilder builder, bool isDismissible = true}) → Future< T?> -
Available on BuildContext, provided by the BuildContextX extension
Safe dialog -
showSnackBar(
String message, {Duration duration = const Duration(seconds: 3), SnackBarAction? action}) → void -
Available on BuildContext, provided by the BuildContextX extension
Safe snackbar