NyAppContext extension
Extension on BuildContext for easier theme and app access.
- on
Properties
- nyIsDark → bool
-
Available on BuildContext, provided by the NyAppContext extension
Check if current theme is dark.no setter - nyThemeData → ThemeData?
-
Available on BuildContext, provided by the NyAppContext extension
Get the current theme data.no setter
Methods
-
nyColors<
T> () → T -
Available on BuildContext, provided by the NyAppContext extension
Get typed color styles. -
nyRestart(
) → void -
Available on BuildContext, provided by the NyAppContext extension
Restart the app (e.g., after language change). -
nySetTheme(
String themeId, {bool remember = false}) → Future< void> -
Available on BuildContext, provided by the NyAppContext extension
Change the current theme.