ContextExtensions extension

on

Properties

appBarExpansionPercent double

Available on BuildContext, provided by the ContextExtensions extension

When you are in sliver AppBar you may want to get current percent 0.0 -> Expanded 1.0 -> Collapsed to toolbar
no setter
bodyLarge TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get bodyLarge property from text theme
no setter
bodyMedium TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get bodyMedium property from text theme
no setter
bodySmall TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get bodySmall property from text theme
no setter
colorScheme ColorScheme

Available on BuildContext, provided by the ContextExtensions extension

Get ColorScheme of current context
no setter
displayLarge TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get displayLarge property from text theme
no setter
displayMedium TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get displayMedium property from text theme
no setter
displaySmall TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get displaySmall property from text theme
no setter
flexibleSpaceBarSettings FlexibleSpaceBarSettings?

Available on BuildContext, provided by the ContextExtensions extension

Get FlexibleSpaceBarSettings
no setter
headlineLarge TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get headlineLarge property from text theme
no setter
headlineMedium TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get headlineMedium property from text theme
no setter
headlineSmall TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get headlineSmall property from text theme
no setter
isDark bool

Available on BuildContext, provided by the ContextExtensions extension

Check is current theme is dark
no setter
isLight bool

Available on BuildContext, provided by the ContextExtensions extension

Check is current theme is light
no setter
isLtr bool

Available on BuildContext, provided by the ContextExtensions extension

Check if directionality is ltr
no setter
isRtl bool

Available on BuildContext, provided by the ContextExtensions extension

Check if directionality is rtl
no setter
labelLarge TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get labelLarge property from text theme
no setter
labelMedium TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get labelMedium property from text theme
no setter
labelSmall TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get labelSmall property from text theme
no setter
locale Locale?

Available on BuildContext, provided by the ContextExtensions extension

Get current Locale if exists
no setter
mediaQuerySize Size

Available on BuildContext, provided by the ContextExtensions extension

Get Size from MediaQuery
no setter
textTheme TextTheme

Available on BuildContext, provided by the ContextExtensions extension

get textTheme property from text theme
no setter
theme ThemeData

Available on BuildContext, provided by the ContextExtensions extension

get current ThemeData
no setter
titleLarge TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get titleLarge property from text theme
no setter
titleMedium TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get titleMedium property from text theme
no setter
titleSmall TextStyle?

Available on BuildContext, provided by the ContextExtensions extension

get titleSmall property from text theme
no setter

Methods

themeExtension<T extends ThemeExtension<T>>() → T

Available on BuildContext, provided by the ContextExtensions extension

get ThemeExtension of type T from current ThemeData