I have a paginator in vertical list. If I scroll t...
# compose
k
I have a paginator in vertical list. If I scroll to the top, I get progress indicator at the top, and that progress indicator slightly pushes LazyColumn first item toward bottom. However, when I try to do that at the bottom of LazyColumn, progress indicator does not push LazyColumn toward top, but rather goes over it. How can I make this so bottom progress indicator pushes my LazyColumn toward top. Code in 🧵
Copy code
Column {
        ExpandVerticalAnimation(animate = showTopProgressIndicator) {
            Row(
                horizontalArrangement = Arrangement.Center,
                modifier = Modifier
                    .fillMaxWidth()
                    .padding(SmallPadding)
            ) { CircularProgressIndicator() }
        }
        LazyColumn(
            state = scrollState,
            modifier = Modifier
                .weight(1f)
                .padding(MinimalPadding)
        ) {
            items(rosterData.days, key = { it.date.value }) { day ->
                RosterDayColumn(day, onAddDuty, onEditDuty)
            }
        }
        ExpandVerticalAnimation(animate = showBottomProgressIndicator) {
            Row(
                horizontalArrangement = Arrangement.Center,
                modifier = Modifier
                    .fillMaxWidth()
                    .padding(SmallPadding)
            ) { CircularProgressIndicator() }
        }
    }