appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
187 stars 214 forks source link

[Swiper] add initial index #185

Closed caseycrogers closed 9 months ago

caseycrogers commented 10 months ago

If you have a fixed card stack and destroy and rebuild the swiper, it's currently annoying to get the swiper to return to the previous position within the card stack: you have to include only the sublist of cards that haven't been swiped yet.

This is a very simple PR that lets you to specify a starting index so when you rebuild a swiper with a previously used list of cards, you can do the following:

return AppinioSwiper(
  initialIndex: alreadySwiped.length,
  ...
);
hasimyerlikaya commented 10 months ago

@bilalhamud

When will this PR be merge? I was going to add the same feature but it is already done.

I would be very pleased if you merge it.

khanmujeeb687 commented 9 months ago

@bilalhamud

When will this PR be merge? I was going to add the same feature but it is already done.

I would be very pleased if you merge it.

Hey @hasimyerlikaya , I will review all PR's today and this PR will be merge this week. And a new version will be published soon.

caseycrogers commented 9 months ago

When is this actually getting merged into Appinio swiper? I see that it just got merged into a feature branch and then the feature branch was never merged. I want to work on some additional PRs for Swiper but it's a little tricky to do so while so many changes are still in flight.

CalogeroCantone commented 7 months ago

Any news?