Closed khanhnt748 closed 4 months ago
I have the problem too. If I generate a palette in dart code, I get something different than on the website(https://m3.material.io/theme-builder#/custom).
my dart code:
static TonalPalette _toTonalPalette(int value) {
final color = Hct.fromInt(value);
return TonalPalette.of(color.hue, color.chroma);
}
Fixed since version 0.11.0 (Dart), commit https://github.com/material-foundation/material-color-utilities/commit/9281b3dbfab9fc82d28110752f3a7461d5e50c68
We try to generate tonal palette with primary color Color(0xFF14C560):
Test result: