Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we change height and width of cards #24

Open
thehannanshaikh opened this issue Jul 6, 2023 · 0 comments
Open

Can we change height and width of cards #24

thehannanshaikh opened this issue Jul 6, 2023 · 0 comments

Comments

@thehannanshaikh
Copy link

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]);
                    },
                    ),
                  ),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant