BirjuVachhani / adaptive_theme

Easiest way to add support for light and dark theme in your flutter app.
https://pub.dev/packages/adaptive_theme
Apache License 2.0
464 stars 37 forks source link

Toggle between dark and light theme only #48

Closed giga10 closed 1 year ago

giga10 commented 1 year ago

Long time ago there was an issue regarding this - https://github.com/BirjuVachhani/adaptive_theme/issues/14, so this is kinda a resurrection of that. 😄

You already mentioned a solution there. I looked up the code, and it should be fairly simple to implement this with one optional parameter "useSystem" to toggleThemeMode method. I wanted to sumbit a PR, but found myself in dilemma what is the cleanest way to write this down, so I decided to ask you if you could do it. 😀

Btw, thank you for this package. It's awesome! 👌

BirjuVachhani commented 1 year ago

This is now available in v3.4.0

toggleThemeMode(useSystem: false);