rydmike / flex_color_scheme

A Flutter package to make and use beautiful color scheme based themes.
Other
887 stars 100 forks source link

AppBar color issue when using seed generated scheme with key color locked #198

Open rydmike opened 8 months ago

rydmike commented 8 months ago

Setting AppBar color to e.g. primary color in a seed generated ColorScheme and locking e.g. primary color to seed color, results in none-locked seed generated primary color as AppBar color, instead of the expected used locked primary seed color.

For example this:

theme: FlexThemeData.light(
  scheme: FlexScheme.rosewood,
  subThemesData: const FlexSubThemesData(
    appBarBackgroundSchemeColor: SchemeColor.primary,
  ),
  keyColors: const FlexKeyColors(
    keepPrimary: true,
  ),
  useMaterial3: true,  
),

Will result in AppBar color 0xFFA5393D and not 0xFF5C000E as expected.

Screenshot 2023-10-13 at 22 19 34