kdsuneraavinash / theme_provider

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

Question: Different theme for part of the widget tree #13

Closed mploigt closed 2 years ago

mploigt commented 3 years ago

If I wanted to show one rather complex widget in "dark" theme while the rest of the page is "light" (assuming I have only these two themes) how would I do that?

mploigt commented 3 years ago

If this package no longer maintained?

kdsuneraavinash commented 2 years ago

Sorry for the extremely late reply. It should be possible using 2 theme providers using using different providerIds.

A test that uses this functionality can be found here. https://github.com/kdsuneraavinash/theme_provider/blob/144c0e7ff17abf2b5c8a44116cfae1367e746d73/test/theme_provider_test.dart#L432