tommybuonomo / dotsindicator

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

Move the indicator by a button click not pager #199

Closed TalkwondoMint closed 6 days ago

TalkwondoMint commented 3 months ago

I want to implement the indictor to move with a button click. i have version 5.

i looked at the library and try to move it by the fucntion within:

 Button(
                onClick = {
                    coroutineScope.launch {
                        pagerState.animateScrollToPage(nextPage + 1)
                    }
                }
        ) {
            Text("click to skip")
        }

but it does not work... any other way?

tommybuonomo commented 6 days ago

Hello @TalkwondoMint , I can't reproduce, the animateScrollToPage method is working well on my side.

tommybuonomo commented 6 days ago

I'll close this issue for now. Please provide more information if needed