skip to Main Content

I have given with the Figma file but the color is not matching with the RGBA in flutter code.

figma file screenshot

3

Answers


  1. for using figma rgba color in flutter , you can use Color.fromARGB(int a, int r, int g, int b) .

    in your case :

    Color.fromARGB(1, 0, 82, 204)

    Login or Signup to reply.
  2. you can use

    Color.fromARGB(int opacity, int red, int green, int blue)
    

    with opacity value 1 being not transparent and 0 fully transparent!

    Login or Signup to reply.
  3. Just use this function Color.fromRGBO(0, 82, 204, 1).

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search