tommybuonomo / dotsindicator

Three material Dots Indicators for view pagers in Android !
Apache License 2.0
3.47k stars 354 forks source link

It's not align to right or left #201

Open semihozkoroglu opened 3 days ago

semihozkoroglu commented 3 days ago

Please remove fillMaxWidth of LazyRow inside Box element because i couldn't align left side of page as wrapped content so i need to use fixed width to align right in page.

LazyRow(
                modifier = Modifier
                    .fillMaxWidth()
semihozkoroglu commented 3 days ago

i mean which need to calculate width like;

width = (DotGraphic.size + dotSpacing) * item count

to use as wrap content

DotsIndicator(
                modifier = Modifier
                    .width(12.dp * feeds.size)
                    .align(Alignment.CenterStart),
                dotCount = feeds.size,
                dotSpacing = 4.dp,
                type = SpringIndicatorType(
                    dotsGraphic = DotGraphic(
                        size = 8.dp,
                        color = BlueMiddle
                    ), selectorDotGraphic = DotGraphic(8.dp, color = Primary)
                ),
                pagerState = pagerState
            )