-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toggle theme on icon button click bug #42
Comments
@yagizdo This is not a bug. Its an expected behavior. So, for example, your OS is running in light mode and you are also on light mode in the app and then if you toggle theme mode, it may go from It seems that you wanna toggle between only final manager = AdaptiveTheme.of(context);
if(manager.mode.isLight){
manager.setDark();
}else {
manager.setLight();
} |
Oh okay I get it. Sorry my bad @BirjuVachhani |
@yagizdo Np. Glad I could help😊 |
Describe the bug
Thank you for preparing such a package first of all. When I assign the toggletheme code to the icon button, it does not detect some clicks. It works when I click it again.
When I first open the application, the theme does not change at the first click. It changes when I click it for the second time. Nothing happens on the first click.
Smartphone
Bug Video :
Kapture.2022-07-07.at.14.02.48.mp4
Codes :
app.dart
homeView.dart
The text was updated successfully, but these errors were encountered: