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

Current theme not being passed down correctly to material widgets #16

Closed ahhmino closed 3 years ago

ahhmino commented 3 years ago

I noticed this issue with CircularProgressIndicator, and I've seen it on both the stable and dev channels. But for a lot of the material widgets that should take in the accentColor from theme data, they don't and just revert to the default. Here's a picture of the widget tree if this helps, you can see the CircularProgressIndicator at the bottom of the screenshot of the widget tree:

Screenshot from 2021-04-28 09-54-55

And I have the ThemeProvider, ThemeConsumer, and Builder at the root of the tree. Let me know if I'm doing something wrong! Otherwise loving the package, thank you

kdsuneraavinash commented 3 years ago

Will it be possible for you to share a code sample?

ahhmino commented 3 years ago

D'oh. I reverted back to the stable flutter channel from dev to check it again and it works now. My mistake!