appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
193 stars 224 forks source link

Programmatic Control for Navigating to Specific Card in `AppuinoSwiper` #213

Closed yogita410 closed 6 months ago

yogita410 commented 11 months ago

I am currently using AppuinoSwiper in my Flutter project for displaying a stack of cards. It's been a great experience, but I've encountered a limitation that I believe, if addressed, could significantly enhance the package's functionality.

I would like to request a feature that allows programmatic control for navigating to a specific card in the stack. This feature would enable developers to directly move to a particular card index in the AppuinoSwiper stack, which can be very useful in various scenarios, such as navigating back to a previously viewed card or jumping to a card based on external events.

Proposed Solution Ideally, this could be implemented as a method in the SwiperController (or an equivalent controller if it exists) that accepts an index and navigates to the corresponding card. For instance:

swiperController.jumpToCard(int index);

This method should handle the navigation smoothly and update the swiper's state accordingly.

Use Cases This feature would be particularly useful in scenarios where: