Can we change height and width of cards
thehannanshaikh opened this issue · 0 comments
thehannanshaikh commented
Hello,
I am using this plugin and it is awesome, but the cards are of default width and height now my requirement is to give proper height, I managed that somehow by wrapping in SizedBox
but I can't change the width I want to give the width to fit screen
Can anyone help?
Thanks
Container(
height: 234.h,
width: 1.sw,
color: Colors.amber,
child: CardSwiper(
cardsCount: newsList.length,
numberOfCardsDisplayed: 3,
backCardOffset: Offset(0, 20.h),
padding: EdgeInsets.zero,
cardBuilder: (BuildContext context, int index, _, __) {
return ItemLatestPostCard(item: newsList[index]);
},
),
),