Skip to content

[TimePicker] Inconsistent theming on dark mode #146

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

You must be logged in to vote

Hi @sabin26, thanks for your question.

To get the same result in FCS, you also need to use the same seed color key generation algorithm in FCS that the ColorScheme.fromSeed(seedColor: Color(AppColors.primary)), uses in your example.

The API using FlexSchemeColor.from(primary: Color(color)), is an older API that uses FCS internal algorithm to generate colors from only a few colors. It was used before Flutter even had a ColorScheme.fromSeed algorithm. It can still be used, it is based on similar ideas, that Flutter added later but it produced different results.

There are two ways to get the same result:

1. Use same input colorsScheme

You can use a pre-generated ColorScheme's with FlexColorS…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rydmike
Comment options

You must be logged in to vote
0 replies
Comment options

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

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. works as expected Reported issue is not a bug, everything works as expected and designed
2 participants
Converted from issue

This discussion was converted from issue #145 on May 02, 2023 14:02.