我想在我的 LazyColumn 或 Column 中禁用滚动。
Modifier.scrollable(state = rememberScrollState(), enabled = false,orientation = Orientation.Vertical)
或者
修饰符.verticalScroll(...)
不工作。
这是我的代码:
Column(
modifier = Modifier
.fillMaxSize()
) {
Box(
modifier = Modifier
.padding(15.dp)
.height(60.dp)
.clip(RoundedCornerShape(30))
) {
TitleSection(text = stringResource(id = R.string...))
}
LazyColumn(
contentPadding = PaddingValues(start = 7.5.dp, end = 7.5.dp, bottom = 100.dp),
modifier = Modifier
.fillMaxHeight()
) {
items(categoryItemContents.size) { items ->
CategoryItem(categoryItemContents[items], navController = navController)
}
}
}