Describe the bug
When I specify an initialItem other than 0 to the controller of the slider, it shows the right item selected, but the scroll stays at 0, like if the selected item was the first one
Then if we move a bit the slider after it was created, it immediately jumps to the position where it should have been
Steps to Reproduce
- open the file record_box_view.dart in the example of the package
- in the _buildCarousel method, in the
CustomCarousel widget:
- remove the
loop property (not required but it makes the bug more obvious)
- add
controller: CustomCarouselScrollController(initialItem: 4),
- launch the project and go to the Record Box section
| actual behavior |
expected behavior |
| same thing than if you don't pass any controller to the slider |
the slider's ScrollPosition has the same offset than after calling controller.jumpToItem(4) |
 |
 |
environement
tested on Android 12
Version 0.1.0+1
Great package by the way, thanks! 🙏
Describe the bug
When I specify an initialItem other than 0 to the controller of the slider, it shows the right item selected, but the scroll stays at 0, like if the selected item was the first one
Then if we move a bit the slider after it was created, it immediately jumps to the position where it should have been
Steps to Reproduce
CustomCarouselwidget:loopproperty (not required but it makes the bug more obvious)controller: CustomCarouselScrollController(initialItem: 4),controller.jumpToItem(4)environement
tested on Android 12
Version 0.1.0+1
Great package by the way, thanks! 🙏