huhx / compose_image_picker

📸 Image Picker for Jetpack Compose
MIT License
51 stars 4 forks source link

When the page counts is too big in Preview, it is very slow #15

Closed huhx closed 2 years ago

huhx commented 2 years ago

The root case is HorizontalPagerIndicator. Actually, we do not need page indicator, so remove it.

HorizontalPagerIndicator(
    pagerState = pageState,
    activeColor = Color.Red,
    inactiveColor = Color.White,
    modifier = Modifier
        .align(Alignment.BottomCenter)
        .padding(60.dp)
)