Open Johann13 opened 5 years ago
I'm having the same issue. When using the shade function the result is always pure black. I hope this gets fixed soon. Cheers!
I found that too!! That's an easy fix I think!!
Easy workaround for tint, you can do: Color.alphaBlend(Colors.white.withOpacity(amount / 100), color);
and for shade: Color.alphaBlend(Colors.black.withOpacity(amount / 100), color);
. Works like a charm.
The functions to create a tint or shade for a color have a paramater amount.
Currenly this is the library code