This simple tool can be used to generate main color and its shades for Flutter
The result can be used in Color.fromRGBO()
and Color.fromARGB()
to define color in a Flutter app.
Color.fromRGBO()
– This method creates a color from red, green, blue, and opacity, similar to rgba() in CSS.Color.fromARGB()
– Construct a color from the lower 8 bits of four integers.a
is the alpha value, with 0 being transparent and 255 being fully opaque.r/g/b
is red/gree/blue, from 0 to 255.