Peter
Image
Box
Modifier.foreground
Box { Image( painter = painterResource(id = R.drawable.bg_home), contentDescription = null, modifier = Modifier.fillMaxSize(), ) Box( Modifier .matchParentSize() .background( Brush.verticalGradient( colors = listOf( Color.Black.copy(alpha = 0f), Color.Black.copy(alpha = 0.8f), ), ), ) ) }
romainguy
A modern programming language that makes developers happier.