Support Flutter 3.x wide gamut changes, Fix okLab<->RGB conversions (gamma correction math was swapped), Fixes #9, Fixes #6#12
Conversation
|
These are breaking changes to I increased the semantic version to 2.0.0 for each package because of this. Also |
|
Flutter Web example using PR and corresponding PR/updated gradients package: |
|
I think you should add the web version to your own james-alex.github.io and add a link in the README.md file I have placed a buildWeb.bat file in the example directory that will build a web version that can be placed in a subdirectory called I think having the web example will help illustrate to users how simple it is to use your package and the nice benefits that it can provide in nicer gradients. |
|
I just became aware that this PR is mostly a duplicate of PR #10. Now the only differences between this PR and PR#10 are the some missing |
|
yay! Thanks James! |
|
@james-alex It looks like there was a new release pushed with this fixed for |
Flutter 3.x added additional members to the ui.Color class (
withValues()method andr,g,b, andagetters. This necessitated changes to change the existingwithValues()method towithValuesList()and adding getters for r,g,b, anda. This also required renaming the existingaandbchromaticity getters forLabColorandOklabColortolab_aandlab_b`.