Alexandru Gheorghe
08/15/2024, 10:39 AMAlexandru Gheorghe
08/15/2024, 10:43 AMval scrollBehavior = TopAppBarDefaults.enterAlwaysScrollBehavior(rememberTopAppBarState())
Scaffold(
modifier = modifier
.nestedScroll(scrollBehavior.nestedScrollConnection),
topBar = { TopBarHere(..., scrollBehavior = scrollBehavior) }
) { padding ->
PullToRefreshLazyColumn(...) {
normal content here
}
}
And TopBarHere
is using scrollBehavior
like this:
TopAppBar(
...,
scrollBehavior = scrollBehavior
)
I've tried pretty much everything I could (making the Box with Modifier.nestedScroll(scrollBehavior.nestedScrollConnection)
also switching to Column with Modifier.verticalScroll(rememberScrollState())
) but nothing seems to workAlexandru Gheorghe
08/15/2024, 10:47 AMAlexandru Gheorghe
08/15/2024, 10:47 AMChrimaeon
08/15/2024, 5:37 PMAlexandru Gheorghe
08/15/2024, 5:39 PMChrimaeon
08/15/2024, 5:53 PMAlexandru Gheorghe
08/15/2024, 5:55 PMAlexandru Gheorghe
08/16/2024, 7:34 AMAlexandru Gheorghe
08/16/2024, 7:37 AMChris Sinco [G]
08/16/2024, 5:33 PMAlexandru Gheorghe
08/16/2024, 5:35 PMAlexandru Gheorghe
08/17/2024, 6:45 AMverticalScroll(rememberScrollState())
and the Box/Column with contents won't hide on scroll but rather remain pinned at the top of the screen as I scroll down the lazy column of Scaffold