Skip to content

Dynamic color support? #96

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

You must be logged in to vote

Hi @fredgrott,

Thanks for your question, it is good one that I have been meaning to add some example and guidance, and best practices on. Still on my to do list.

You can do it two different ways.

A) Give FlexClorScheme a ready made ColorScheme

The dynamic color gives you the main colors, for the scheme to be seed generated from, primary, secondary and tertiary. You can then make the seed generated ColorScheme with Flutter using ColorScheme.fromSeed.

However, with Flutter SDK you can only use the main/primary key color to generate a full color scheme using ColorScheme.fromSeed. The resulting ColorScheme you can feed directly to FlexColorScheme.colorScheme. Same applies if you already have …

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 #95 on November 03, 2022 03:22.