Skip to content
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

Icon moon to sun and back theme switcher #33

Closed
chitgoks opened this issue Jul 18, 2021 · 2 comments
Closed

Icon moon to sun and back theme switcher #33

chitgoks opened this issue Jul 18, 2021 · 2 comments
Labels
question Further information is requested

Comments

@chitgoks
Copy link

Possible to have like in the example sidebar where the icon changes from moon to sun?

@kherel kherel added the question Further information is requested label Jul 18, 2021
@hnrq
Copy link

hnrq commented Jul 31, 2021

Icon(ThemeProvider.of(context)?.brightness == Brightness.light ? Icons.dark_mode_outlined : Icons.dark_mode);

Then you replace for the Icons you want. At least that's how I did

@chitgoks
Copy link
Author

yes sorry. forgot to close. i did it like that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants