Skip to content

Is there a way to access subThemesData from context #117

Closed Answered by rydmike
Flucadetena asked this question in Q&A
Discussion options

You must be logged in to vote

Hi again! 👍🏻 😃

FlexColorScheme does not in its current version create an inherited widget that you can use to access any of its properties with in the widget tree. Perhaps this is something that could be useful in a future version.

However, since all the values it was assigned, end up somewhere in your theme, you can extract the values from Theme.of(context). Getting access to the border radius in a component theme is actually something I pondered about earlier too, and even use myself in the Themes Playground app.

One example is the cards around controls. You might have noticed that they sometimes have a border:

but when the color diff due to theme setting changes, so it has different c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Flucadetena
Comment options

Answer selected by Flucadetena
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants