I'm using carousel_slider flutter plugin. I want to reduce the space between 'items' widgets. Here's my code:
CarouselSlider(
options: CarouselOptions(
enableInfiniteScroll: false,
initialPage: 0,
height: screenHeight * 0.35,
enlargeCenterPage: true,
viewportFraction: 0.85
),
items: <Widget>[
Container(
padding: EdgeInsets.all(0),
color: Colors.blue,
),
Container(
padding: EdgeInsets.all(0),
color: Colors.blue,
)
],
)
and this is what I'm getting:
