Qamar Khan
09/27/2023, 4:25 PMval numberOfPages = 7
HorizontalPager(
state = pagerState,
modifier = Modifier
.fillMaxWidth()
.height(90.dp)
.padding(top = 12.dp)
) { currentPage ->
Column(
modifier = Modifier.fillMaxWidth(),
horizontalAlignment = Alignment.CenterHorizontally
) {
if (currentPageIndex == currentPage) {
BarChart(
modifier = Modifier.fillMaxWidth(),
lables = labels,
listOfPredicationBarItems = listOfPredicationBarItems
)
}
}
}
#compose #compose-androidascii
09/27/2023, 5:14 PMbeyondBoundsPageCount
(default 0) but that doesn't change prefetcher behaviour. At the moment you can't adjust the latter.Qamar Khan
09/27/2023, 8:24 PMif (pagerState.settledPage == currentPage) {
this is worked and now i am able to see only the current visible page bar chart data only.