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

How to get rid of the white border around the image? #30

Closed
sgon00 opened this issue Dec 16, 2018 · 2 comments
Closed

How to get rid of the white border around the image? #30

sgon00 opened this issue Dec 16, 2018 · 2 comments

Comments

@sgon00
Copy link

sgon00 commented Dec 16, 2018

I put the Swiper inside a Container and my background color of the Scaffold is not white. So I can see a white border around the image. I am unable to get rid of the white border. Anyone have any ideas? Thanks a lot.

Container(
              height: 350,
              color: someColor,
              child: Swiper(
                itemBuilder: (BuildContext context, int index) {
                  return carouselImageList[index];
                },
                itemCount: 4,
                autoplay: true,
                autoplayDelay: 7000,
                pagination: SwiperPagination(
                  alignment: Alignment(0, 1.0),
                ),
              ),
            ),
@sgon00
Copy link
Author

sgon00 commented Dec 17, 2018

I think it's something to do with the Card widget. I wrapped this Container inside a Card. By removing the Card, the white border is gone. So closing this issue.

@Finn1510
Copy link

For anyone who might come across this while googling, setting the Card color to Colors.transparent worked for me.

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

2 participants