Something like:
getColorShade(Color color){
Color shadeOne = color.shade50
Color shadeTwo = color.shade300
Color shadeThree = color.shade500
}
I do not intend to play with the color alpha here.
Something like:
getColorShade(Color color){
Color shadeOne = color.shade50
Color shadeTwo = color.shade300
Color shadeThree = color.shade500
}
I do not intend to play with the color alpha here.
by using hex color you can use any range of color that you want right? so by getting help from another post here, there is a function which returns a flutter color by sending it a hex number color. here is the function which I use myself:
Color hexToColor(String code) {
return new Color(int.parse(code.substring(1, 7), radix: 16) + 0xFF000000);
}