https://kotlinlang.org logo
#compose
Title
# compose
z

ziv kesten

07/11/2022, 3:59 PM
How would i create a
Card
with these gradient?,
card
background color only responds to
backgroundColor
, using modifer like this:
Copy code
.background(brush = Brush.linearGradient(
                        colors = listOf(
                            colorResource(id = R.color.lemonade_pink),
                            Color.White.copy(alpha = 0.1f)),
                        start = Offset(0f, Float.POSITIVE_INFINITY),
                        end = Offset(Float.POSITIVE_INFINITY, 0f)
                    )
                )
3 Views