我有一个 lazyColumn
,它包含一些项目。
@Composable
fun MySimpleListItem(
itemViewState: String,
itemClickedCallback: (() -> Unit)? = null,
) {
Card(
shape = RoundedCornerShape(50.dp),
backgroundColor = Color(0xFFFF0000),
) {
Text(
text = itemViewState,
modifier = Modifier.fillMaxWidth().padding(16.dp),
style = TextStyle(fontSize = 32.sp),
textAlign = TextAlign.Center
)
}
}
看起来顶部和底部的角落圆弧不同。我做错了什么吗?
![enter image description here](https://istack.dev59.com/yFuqE.webp)