You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrieving the ThemeData with get theme and get darkTheme will return not the expected themes of light theme and dark theme, instead both return the "active" theme.
To Reproduce
Compare AdaptiveTheme.of(context).theme with AdaptiveTheme.of(context).darkTheme;.
Expected behavior
theme returns the light theme and darkTheme returns the dark theme.
Responsible Code
from adaptive_theme.dart, which is cousing this behaviour:
@override
ThemeData get theme => preferences.mode.isDark ? _darkTheme : _theme;
@override
ThemeData get darkTheme => preferences.mode.isLight ? _theme : _darkTheme;
The text was updated successfully, but these errors were encountered:
Retrieving the ThemeData with get theme and get darkTheme will return not the expected themes of light theme and dark theme, instead both return the "active" theme.
To Reproduce
Compare
AdaptiveTheme.of(context).theme
withAdaptiveTheme.of(context).darkTheme;
.Expected behavior
theme returns the light theme and darkTheme returns the dark theme.
Responsible Code
from adaptive_theme.dart, which is cousing this behaviour:
The text was updated successfully, but these errors were encountered: