kherel / animated_theme_switcher

Flutter animated theme switcher
https://pub.dev/packages/animated_theme_switcher
MIT License
275 stars 28 forks source link

How to handle dark theme? #66

Open DevHachi opened 1 year ago

DevHachi commented 1 year ago

First of all I like your theme switcher widget, but I got a question maybe you could point me in the right direction.

The Material App has 2 attributes theme and dark theme. (For those who doesn't have an in app switcher but switching with the system)

How could I use this library to fill both themes. As far as I can see, The ThemeProvider doesn't deliver a secondary theme or does it?

Any help would be appreciate.

kherel commented 1 year ago

Thanks you @DevHachi for opening the issue. I'll take a look on the next weekend.

mllrr96 commented 2 weeks ago

@DevHachi Sorry for the reply now, I was looking for the same thing (ability to switch themes (dark and light) and theme mode) so I forked the repo and updated the package to include theme mode and dark, light theme. Also updated the examples

@kherel lmk if I should submit a pull request and thank you for the awesome package

animated_theme_switcher_v3

kherel commented 2 weeks ago

@kherel lmk if I should submit a pull request and thank you for the awesome package

Sure man, go ahead.

fredgrott commented 5 days ago

that is some good improvements....I am going to write about it and point to that code improvement and the plugin in my substack article.

mllrr96 commented 4 days ago

that is some good improvements....I am going to write about it and point to that code improvement and the plugin in my substack article.

That's lovely, pls post the link when u post it and I just submitted pull request to update it to v3

I used the updated package in my Neumorphic Calculator, I think it's a nice example showing the package so maybe you can include that in your article :) (just a suggestion)