-
I'm using the latest version of flex_color_scheme (7.3.1). After upgrade to Flutter 3.22.0, some background part in widgets (such as Maybe flutter/issue148359 is related? It appears when only setting final colorScheme = FlexThemeData.light(
scheme: FlexScheme.bahamaBlue,
); Disappears when I override color roles in final seedScheme = ColorScheme.fromSeed(seedColor: seedColor);
final fixedColorScheme = FlexThemeData.light(
primary: seedScheme?.primary,
onPrimary: seedScheme?.onPrimary,
primaryContainer: seedScheme?.primaryContainer,
onPrimaryContainer: seedScheme?.onPrimaryContainer,
// other color roles.
); I don't know how to change it back, maybe specify Is there any workaround to fix background color when only using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
FlexColorScheme 7.3.1 and earlier version is not fully compatible with Flutter 3.22, since Flutter 3.22 contains many breaking changes in how it treats and handles surface colors. FlexColorScheme 8.0.0, that will also contain breaking changes in order to adjust for all the breaking changes in Flutter 3.22 will resolve these breaking style changes in the manner intended by Flutter and Material design, but they will still not be identical to the styles prior to Flutter 3.22. Yes, the less colored surface colors on e.g. elevated Card are a part of breaking style changes in Material-3 design. But some style changes you observe on some surfaces, if using FCS 7.3.1 or earlier with Flutter 3.22, may also be due to different usage of surface color mappings between the style breaking Flutter version 3.22 and FCS 7.3.1. |
Beta Was this translation helpful? Give feedback.
FlexColorScheme 7.3.1 and earlier version is not fully compatible with Flutter 3.22, since Flutter 3.22 contains many breaking changes in how it treats and handles surface colors.
FlexColorScheme 8.0.0, that will also contain breaking changes in order to adjust for all the breaking changes in Flutter 3.22 will resolve these breaking style changes in the manner intended by Flutter and Material design, but they will still not be identical to the styles prior to Flutter 3.22.
Yes, the less colored surface colors on e.g. elevated Card are a part of breaking style changes in Material-3 design. But some style changes you observe on some surfaces, if using FCS 7.3.1 or earlier with Flutter 3.22,…