rydmike / flex_color_scheme

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

flex_color_scheme >=7.2.0 depends on flex_seed_scheme ^1.4.0 #233

Open sgehrman opened 1 month ago

sgehrman commented 1 month ago

Because flex_color_scheme >=7.2.0 depends on flex_seed_scheme ^1.4.0 and flex_color_picker >=3.5.0 depends on flex_seed_scheme ^2.0.0, flex_color_scheme >=7.2.0 is incompatible with flex_color_picker >=3.5.0.

rydmike commented 1 month ago

Hi @sgehrman,

The dependency warning is correct and expected.

I'm guessing you are using flex_color_picker 3.5.0 as a direct dependency to get this error?Which also means you are already using Flutter 3.22, as the picker 3.5.0 requires min Flutter 3.22.0.

For now, pin an older version of the flex_color_picker that does not have this conflict, step down in version until you get one without conflict. First try flex_color_picker 3.5.0, then flex_color_picker 3.4.1 and so on. Pinned means no ^ or >=. You should as you step down find the highest one that works with your combination of flex color picker and flex color scheme.

Since (if) you are using Flutter 3.22, please be aware that flex_color_scheme 7.3.1 and earlier versions are not fully compatible with Flutter 3.22.

https://docs.flexcolorscheme.com/

Screenshot 2024-05-19 at 02 44 26

Pending flex_color_scheme 8.0.0, will fix the dependency conflict and also provide full Flutter 3.22 compatibility.