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

Including system default theme in the list #22

Open
achamene opened this issue Dec 10, 2021 · 2 comments
Open

Including system default theme in the list #22

achamene opened this issue Dec 10, 2021 · 2 comments

Comments

@achamene
Copy link

Congratulations,
This is great package.

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

  • System Default;
  • Light Theme;
  • Dark Theme;

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

@kdsuneraavinash
Copy link
Owner

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
Copy link
Author

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.

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

No branches or pull requests

2 participants