Alex Styl
04/24/2023, 3:37 PMOleksandr Balan
04/24/2023, 4:38 PM@Preview
@Composable
fun BordersPreview() {
val borderWidth = 8.dp
val borderShape = RectangleShape
Box(
modifier = Modifier
.size(100.dp)
.background(Color.Cyan, borderShape)
.padding(start = borderWidth, top = borderWidth)
.background(Color.Yellow, borderShape)
.padding(end = borderWidth, bottom = borderWidth)
.background(Color.White, borderShape)
)
}
Alex Styl
04/26/2023, 3:30 AM