Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's not align to right or left #201

Open
semihozkoroglu opened this issue Oct 9, 2024 · 1 comment
Open

It's not align to right or left #201

semihozkoroglu opened this issue Oct 9, 2024 · 1 comment

Comments

@semihozkoroglu
Copy link

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
Copy link
Author

semihozkoroglu commented Oct 9, 2024

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
            )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant