animated_theme_switcher icon indicating copy to clipboard operation
animated_theme_switcher copied to clipboard

How to handle dark theme?

Open DevHachi opened this issue 2 years ago • 5 comments

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.

DevHachi avatar Jul 07 '23 10:07 DevHachi

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

kherel avatar Jul 10 '23 07:07 kherel

@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

mllrr96 avatar Jul 08 '24 13:07 mllrr96

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

Sure man, go ahead.

kherel avatar Jul 08 '24 14:07 kherel

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.

fredgrott avatar Jul 21 '24 21:07 fredgrott

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)

mllrr96 avatar Jul 22 '24 21:07 mllrr96