ricardodalarme/flutter_card_swiper

Can we change height and width of cards

Opened this issue · 0 comments

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

image

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]);
                    },
                    ),
                  ),