79296124

Date: 2024-12-20 03:54:46
Score: 1
Natty:
Report link

Use .withAlpha() with a value between 0 and 255 to represent the alpha channel directly.

eg: Color(0xff171433).withOpacity(0.1) -> Color(0xff171433).withAlpha((0.1 * 255).toInt())

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Pasindu Jayanath