Skip to content

question about dynamic color #79

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

You must be logged in to vote

Hi Fred,

If you are using this method to get dynamic color, harmonized or not, and tweaked with own colors or not:

https://github.com/material-foundation/material-dynamic-color-flutter/blob/main/example/lib/complete_example.dart

You still end up with two standard ColorSchemes, one for light and one for dark mode. Simply
pass the light one to FlexThemeData.light(colorScheme: dynamicLight) (or FlexColorScheme.light if using the factory that gives you the FlexColorScheme object first). Ditto for dark version.

FlexColorScheme will then use this ColorScheme as its input colors. You can still configure all other FlexColorScheme props, sub-themes, and even blends, to further modify surface color…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rydmike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question This issue is a usage question and will be moved to the Discussions section.
2 participants
Converted from issue

This discussion was converted from issue #77 on August 28, 2022 23:31.