kdsuneraavinash / theme_provider

Easy to use, customizable and pluggable Theme Provider.
https://pub.dartlang.org/packages/theme_provider
MIT License
153 stars 28 forks source link

Including system default theme in the list #22

Open achamene opened 2 years ago

achamene commented 2 years ago

Congratulations, This is great package.

I´m trying to create a dialog in which user gets 3 option:

Where the system default I believe you know it get the device predefined theme. Can you help me achieving #this. Thanks in advance.

kdsuneraavinash commented 2 years ago

This might be kind of hard if you want to use the stock ThemeDialog widget. I'd say the best way would be to write a custom dialog box using the source in https://github.com/kdsuneraavinash/theme_provider/blob/master/lib/src/widgets/theme_dialog.dart and handle changing to system default theme on onThemeChanged.

But I feel like having this as a feature would be great. I'll try to add it as soon as I get a free time. I'll keep this issue open as a reminder.

achamene commented 2 years ago

First of all I wanna thank you for taking a minute of your time to reply. And I understood very well the solution you provided, but I will for sure wait till when you add that feature in the package.

Once again thank you so much.