flutter-carousel-pro
flutter-carousel-pro copied to clipboard
How to remove margin/padding top and bottom?
Hi @jlouage ,
Do you still support this plugin? I have a question about how to remove margin/padding top and bottom of image. My code is:
Container(
alignment: Alignment.topCenter,
decoration: BoxDecoration(color: Colors.red),
child: Carousel(
dotSize: 4,
dotSpacing: 8,
dotBgColor: Colors.transparent,
autoplayDuration: Duration(seconds: 5),
images: carouselImages,
showIndicator: true,
boxFit: BoxFit.contain,
),
),
Then please refer to following screenshot, as you can see there's red background indicate margin/padding top and bottom:
How could I remove it? Thanks in advance!