https://kotlinlang.org logo
#compose
Title
# compose
a

Asad Mukhtar

08/11/2022, 8:21 AM
Hi everyone, why content not scroll in Compose, even i add adjustResize in the manifest and also keyboard opened but not scrolling not worked.
Copy code
Column(
        modifier = Modifier
            .fillMaxSize(1f)
            .background(color = Color.White)
            .verticalScroll(state = rememberScrollState(),
    ) {
        HeaderSection("Welcome!", "It's great to have you here") {
            viewModel.events.postValue(AuthModuleClickEventsObject.BACK_CLICK)
        }
        ContentSection(
            modifier = Modifier
                .background(
                    color = Color(0xFFF3F6F9),
                    shape = RoundedCornerShape(topStart = 34.dp, topEnd = 34.dp)
                )
                .fillMaxWidth()
                .fillMaxHeight()
                .padding(horizontal = 17.5.dp),
            {}, {
                viewModel.events.postValue(AuthModuleClickEventsObject.FORGOT_PASSWORD_CLICK_EVENT)
            })
    }
????
z

Zoltan Demant

08/11/2022, 11:02 AM
I would look at your usage of
fillMaxSize
and
fillMaxHeight
first, could you please check if scrolling works without them?
a

Asad Mukhtar

08/11/2022, 1:47 PM
@Zoltan Demant Its not working…
z

Zoltan Demant

08/11/2022, 2:01 PM
Sorry to hear that 😕 I dont have any more ideas currently, but hopefully somebody else will chime in!
a

Asad Mukhtar

08/11/2022, 6:57 PM
@Oleksandr Balan can you please see this?
o

Oleksandr Balan

08/11/2022, 7:01 PM
I am not sure, your code looks good to me 🤷
13 Views