Hi, I have a question for Scrollable View vertical...
# compose
c
Hi, I have a question for Scrollable View vertically.
Copy code
LazyColumn(
        modifier = Modifier
            .fillMaxSize()
            .padding(
                top = 12.dp,
                start = 12.dp,
                end = 12.dp,
                bottom = 12.dp
            )
    ) {
        item{
            Column {
                EventBanner(
                    modifier = Modifier
                        .background(Color.White)
                        .fillMaxWidth()
                        .align(Alignment.CenterHorizontally)
                        .aspectRatio(1.2f)
                        .clip(RoundedCornerShape(8.dp)),
                    activeIndicatorColor = Color(0xFF0599FF),
                    inActiveIndicatorColor = Color(0x55888888),
                    indicatorSize = 10,
                    eventItems = eventList
                )
            }
        }
        item{
            Spacer(
                modifier = Modifier
                    .fillMaxWidth()
                    .height(12.dp)
            )
        }
        item {
            LazyVerticalGrid(
                columns = GridCells.Adaptive(minSize = 128.dp)
            ) {
                items(supplements) { supplement ->
                    SupplementItem(supplement)
                }
            }
        }
  }
Copy code
@Composable
fun SupplementItem(supplement: SupplementData.Supplement) {
    Column {
        AsyncImage(
            modifier = Modifier
                .width(97.dp)
                .height(81.dp),
            model = supplement.imageUrl,
            contentDescription = supplement.name,
            contentScale = ContentScale.Crop
        )
        Text(text = supplement.brand)
        Text(text = supplement.name)
    }
}
I think LazyVerticalGrid part can't make it scrollable. I don't want
LazyVerticalGrid
scrollable. but fixed. And entire screen only should be scrollable. How can I solve this problem?????
d
@chanjungskim what is the exact demand?