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

Support for dark mode #111

Open
alanmeier opened this issue Jun 19, 2020 · 3 comments
Open

Support for dark mode #111

alanmeier opened this issue Jun 19, 2020 · 3 comments

Comments

@alanmeier
Copy link

Hi there,

Loved the versatility of the picker.

When testing I toggled dark mode the widget stayed the same color. Does it not support dark mode ?

Thanks

@yangyxd
Copy link
Owner

yangyxd commented Jun 21, 2020

Yes, there is no contention to deal with the dark mode. You can consider adding it later. thank you!

@rh-id
Copy link
Contributor

rh-id commented Apr 19, 2021

hello @yangyxd does this plugin didn't support dark mode? currently when I toggle dark mode the text stays black color and the background stays white color. i could only change the picker backgroundColor but cannot change the text color

@rh-id
Copy link
Contributor

rh-id commented Apr 21, 2021

update: it works but need to set both backgroundColor and textStyle

Picker(
backgroundColor: darkModeOn ? Colors.black : Colors.white,
textStyle: Theme.of(context).textTheme.headline6,
)

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

3 participants