ThemesValuesExtension extension

Convenience accessors for theme, typography, colors, and platform values from a BuildContext.

on

Properties

bodyLarge TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

The large body text style from the current theme.
no setter
bodyMedium TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

The medium body text style from the current theme.
no setter
bodySmall TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

The small body text style from the current theme.
no setter
displayLarge TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

Display styles are the largest text styles in the theme. Use them for short, prominent text such as hero headlines.
no setter
displayMedium TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

The medium display text style from the current theme.
no setter
displaySmall TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

The small display text style from the current theme.
no setter
dynamicBlackWhiteColor Color

Available on BuildContext, provided by the ThemesValuesExtension extension

Returns white in light mode and black in dark mode.
no setter
dynamicThemeColor Color

Available on BuildContext, provided by the ThemesValuesExtension extension

A theme-aware color that switches between secondary and primary colors.
no setter
dynamicWhiteBlackColor Color

Available on BuildContext, provided by the ThemesValuesExtension extension

Returns black in light mode and white in dark mode.
no setter
headlineLarge TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

Headline styles are smaller than display styles. They're best-suited for short, high-emphasis text on smaller screens.
no setter
headlineMedium TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

The medium headline text style from the current theme.
no setter
headlineSmall TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

The small headline text style from the current theme.
no setter
isDesktop bool

Available on BuildContext, provided by the ThemesValuesExtension extension

Whether the app is running on a desktop platform.
no setter
isLight bool

Available on BuildContext, provided by the ThemesValuesExtension extension

Whether the current theme uses light brightness.
no setter
isMobile bool

Available on BuildContext, provided by the ThemesValuesExtension extension

Whether the app is running on a mobile platform.
no setter
isTablet bool

Available on BuildContext, provided by the ThemesValuesExtension extension

Whether the current screen width matches the tablet breakpoint.
no setter
labelLarge TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

Label styles are intended for compact UI text, such as buttons, tabs, chips, and form labels.
no setter
labelMedium TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

The medium label text style from the current theme.
no setter
labelSmall TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

The small label text style from the current theme.
no setter
primaryColor Color

Available on BuildContext, provided by the ThemesValuesExtension extension

The primary color from the current theme.
no setter
secondaryColor Color

Available on BuildContext, provided by the ThemesValuesExtension extension

The icon theme color with reduced opacity for secondary emphasis.
no setter
textColor Color

Available on BuildContext, provided by the ThemesValuesExtension extension

The resolved color of the theme's large body text style.
no setter
themeData ThemeData

Available on BuildContext, provided by the ThemesValuesExtension extension

The current ThemeData from this context.
no setter
titleLarge TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

Titles are smaller than headline styles and should be used for shorter, medium-emphasis text.
no setter
titleMedium TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

The medium title text style from the current theme.
no setter
titleSmall TextStyle?

Available on BuildContext, provided by the ThemesValuesExtension extension

The small title text style from the current theme.
no setter