Skip to content

How to modify "colorScheme" property while using custom "colors" in FlexThemeData #116

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

You must be logged in to vote

Hi @Flucadetena, thanks for your question.

I'm assuming here that you are on Flutter 3.7 and using latest stable 6.1.2 of FCS, or perhaps even latest FCS beta 7.0.0-dev.2. Not that it really matters so much for the proposed solution further below.

From Flutter 3.3 to 3.7 there has been a change in how Divider gets its default color from the surrounding theme and its colorScheme.

In Flutter 3.3 it is:

M2: theme.dividerColor
M3: theme.dividerColor

In Flutter 3.7 it is:

M2: theme.dividerColor
M3: theme.colorScheme.outlineVariant

Where theme is `Theme.of(context)'.

The dividerColor is on a deprecation roadmap in Flutter, see: flutter/flutter#91772

In upcoming FCS V7 and already in above menti…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Flucadetena
Comment options

@rydmike
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
question This issue is a usage question and will be moved to the Discussions section.
2 participants