I am trying to build something like this, but my h...
# compose
h
I am trying to build something like this, but my head couldn't figure it out, any idea how to get this gradient
j
Since left to right is saturation and top to bottom is brightness it is I think the easiest to create it with two gradients overlayed over each other. On the bottom from left to right 0 to 100% saturation and 1 hue and 100% brightness with an HSL color. Then overlay that gradient with a transparant top to black bottom color.
n
t
Funny, I did the same thing just a few days ago. I also just layered background modifiers:
Copy code
Spacer(
    modifier = Modifier
        .fillMaxSize()
        .background(hueColor)
        .background(Brush.horizontalGradient(listOf(Colors.White, Colors.Transparent)))
        .background(Brush.verticalGradient(listOf(Colors.Transparent, Colors.Black)))
        .border(Dp.Hairline, Colors.Black.copy(alpha = 0.12f))
)