Skip to content

Q: What do I get a "FlexColorScheme WARNING: primaryLightRef is null, but primary is defined"? #269

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

You must be logged in to vote

Hi @maxfrees, thanks for your question.

Yes, this is an expected informational debug print, it is only shown/printed in debug mode build and only when there might be a point in doing so. It is intended to make you aware of potentially incomplete configuration to make a matching dark mode ColorScheme that follows the Material-3 design intent.

This is what triggers it:

    // In debug mode warn to console about missing LightRef colors when they
    // are used in a combo that may require them.
    if (kDebugMode) {
      if (primary != null &&
          primaryLightRef == null &&
          ((!seed.useKeyColors &&
                  (fixedColorStyle ?? FlexFixedColorStyle.computed) ==

Replies: 2 comments

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
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 package Report concerns the FlexColorScheme core package V8 This issue concerns version 8 and will be addressed in it
2 participants
Converted from issue

This discussion was converted from issue #268 on December 13, 2024 16:54.