The Android studio emulator is not showing the colors specified properly, instead its showing the color lighter then the original color. But if I run it in a physical device , then the color is properly shown.

This is an screenshot for comparison between my emulator color and the original color https://ibb.co/tm2sGps

This is the code i used

body: Container(
  color: Color(0xff0a0e21),
  )

Help me with this issue.


Solution 1: Jay Mungara

Just try changing your alpha opacity from "ff" to "00" to your color code.

body: Container(
      color: Color(0x000a0e21),
      )