I’m trying to create a horizontal stacked card carousel in Flutter, similar to the one shown in the image below:
I’ve tried using the card_swiper package, but it didn’t produce the desired result. The cards didn’t stack as shown in the image, and the overall appearance was not what I expected.
Here’s what I tried:
Swiper(
itemBuilder: (BuildContext context, int index) {
return myCardList[index];
},
itemCount: myCardList.length,
);
What I need is for the cards to overlap each other horizontally, with only a portion of the next card visible, creating a stacked effect as in the image. The user should be able to swipe horizontally to navigate through the cards.
Could someone provide guidance or an example of how to achieve this in Flutter? Any recommendations for other packages or custom implementations would be greatly appreciated.