I have given with the Figma file but the color is not matching with the RGBA in flutter code.
3
for using figma rgba color in flutter , you can use Color.fromARGB(int a, int r, int g, int b) .
figma
rgba color
Color.fromARGB(int a, int r, int g, int b)
in your case :
Color.fromARGB(1, 0, 82, 204)
you can use
Color.fromARGB(int opacity, int red, int green, int blue)
with opacity value 1 being not transparent and 0 fully transparent!
Just use this function Color.fromRGBO(0, 82, 204, 1).
Color.fromRGBO(0, 82, 204, 1)
Click here to cancel reply.
3
Answers
for using
figma
rgba color
in flutter , you can useColor.fromARGB(int a, int r, int g, int b)
.in your case :
Color.fromARGB(1, 0, 82, 204)
you can use
with opacity value 1 being not transparent and 0 fully transparent!
Just use this function
Color.fromRGBO(0, 82, 204, 1)
.