AdaptiveThemeProviderExtension extension

Extension to provide easy access to AdaptiveThemeProvider

on

Properties

adaptiveTheme → AdaptiveThemeProvider

Available on BuildContext, provided by the AdaptiveThemeProviderExtension extension

Get the AdaptiveThemeProvider from the widget tree
no setter
isDarkTheme → bool

Available on BuildContext, provided by the AdaptiveThemeProviderExtension extension

Check if the current theme is dark
no setter
isLightTheme → bool

Available on BuildContext, provided by the AdaptiveThemeProviderExtension extension

Check if the current theme is light
no setter
theme → ThemeData

Available on BuildContext, provided by the AdaptiveThemeProviderExtension extension

Get the current theme
no setter
themeMode → AdaptiveThemeMode

Available on BuildContext, provided by the AdaptiveThemeProviderExtension extension

Get the current theme mode
no setter

Methods

watchAdaptiveTheme() → AdaptiveThemeProvider

Available on BuildContext, provided by the AdaptiveThemeProviderExtension extension

Watch the adaptive theme provider