Hey guys :wave: any idea how to make a gradient b...
# compose
k
Hey guys 👋 any idea how to make a gradient background to a Surface object ?
t
Not sure if this is the simplest solution but it work:
Copy code
Modifier.drawBehind {
            drawRect(LinearGradient(listOf(Color.Red, Color.LightGray), 0f, 0f, size.width, size.height))
        }
👍 3
k
Perfect, thx man