NashContextX extension
Convenience extensions on BuildContext.
- on
Properties
- colorScheme → ColorScheme
-
Available on BuildContext, provided by the NashContextX extension
Shortcut forTheme.of(this).colorScheme.no setter - focusScope → FocusScopeNode
-
Available on BuildContext, provided by the NashContextX extension
Current focus scope.no setter - height → double
-
Available on BuildContext, provided by the NashContextX extension
Screen height.no setter - isDark → bool
-
Available on BuildContext, provided by the NashContextX extension
Whether the current theme is dark.no setter - isLight → bool
-
Available on BuildContext, provided by the NashContextX extension
Whether the current theme is light.no setter - isMounted → bool
-
Available on BuildContext, provided by the NashContextX extension
Whether the widget mounted at this context is still active.no setter - mediaQuery → MediaQueryData
-
Available on BuildContext, provided by the NashContextX extension
CurrentMediaQueryData.no setter - messenger → ScaffoldMessengerState
-
Available on BuildContext, provided by the NashContextX extension
CurrentScaffoldMessenger(asserts it exists).no setter -
Available on BuildContext, provided by the NashContextX extension
CurrentNavigator.no setter - overlay → OverlayState?
-
Available on BuildContext, provided by the NashContextX extension
Current overlay, if available.no setter - primaryColor → Color
-
Available on BuildContext, provided by the NashContextX extension
Primary color shortcut.no setter - size → Size
-
Available on BuildContext, provided by the NashContextX extension
Screen size.no setter - surfaceColor → Color
-
Available on BuildContext, provided by the NashContextX extension
Surface color shortcut.no setter - textTheme → TextTheme
-
Available on BuildContext, provided by the NashContextX extension
Shortcut forTheme.of(this).textTheme.no setter - theme → ThemeData
-
Available on BuildContext, provided by the NashContextX extension
Shortcut forTheme.of(this).no setter - viewPadding → EdgeInsets
-
Available on BuildContext, provided by the NashContextX extension
Safe area padding.no setter - width → double
-
Available on BuildContext, provided by the NashContextX extension
Screen width.no setter
Methods
-
showErrorSnack(
String message, {Duration? duration}) → void -
Available on BuildContext, provided by the NashContextX extension
Shows a styled error SnackBar. -
showSnack(
String message, {Duration? duration}) → void -
Available on BuildContext, provided by the NashContextX extension
Shows a standard SnackBar on the closest ScaffoldMessenger. -
showSuccessSnack(
String message, {Duration? duration}) → void -
Available on BuildContext, provided by the NashContextX extension
Shows a styled success SnackBar. -
showWarningSnack(
String message, {Duration? duration}) → void -
Available on BuildContext, provided by the NashContextX extension
Shows a styled warning SnackBar.