Pyozer / dots_indicator

Add an indicator for a progression. You can customize indicators (shape, color, ..)
https://pub.dartlang.org/packages/dots_indicator
MIT License
153 stars 36 forks source link

Delayed transition #6

Closed softower closed 3 years ago

softower commented 5 years ago

I have a Pageview widget setup along with dots indicator. When the page changes the "position" of the dot also changes. So the dot transition happens immediately even before the page transition completes. A "delay" property would be great to keep both dot and the page transitions in sync.

Pyozer commented 3 years ago

Hi, I'm so sorry for the very very late reply.

Hope you have found a solution. I think you update dots position too early. You can wrap your PageView with a NotificationListener<ScrollNotification>, with this, you will be able to have a callback on PageView position changes, and update Dots position in same time (both positions are double). You can check source code of my other package introduction_screen.

I close this issue, if you have any other questions, re-open it ;)