adjpd
09/29/2021, 9:00 PMBrush.verticalGradient
in a white Box
renders gray with drawWithCache
. A bug? Code in 🧵adjpd
09/29/2021, 9:01 PMBox(
Modifier
.size(50.dp, 50.dp)
.background(Color.White)
.drawWithCache {
onDrawWithContent {
drawContent()
drawRect(
Brush.verticalGradient(
.5f to Color.Transparent,
1F to Color.White
)
)
}
}
)
Zach Klippenstein (he/him) [MOD]
09/30/2021, 5:48 AMZach Klippenstein (he/him) [MOD]
09/30/2021, 5:49 AMColor.White.copy(alpha=0f)
instead of Transparent
adjpd
09/30/2021, 11:45 AMColor.Transparent
was set.Zach Klippenstein (he/him) [MOD]
09/30/2021, 4:33 PM