flutter_carousel_slider
flutter_carousel_slider copied to clipboard
An option for viewportFraction to be visible for only one side.
CarouselSlider(
options: CarouselOptions(
height: 124.0,
autoPlay: true,
aspectRatio: 16 / 9,
viewportFraction: 0.8,
onlyRightViewportVisible: true, // <----- Add something like this.
scrollPhysics:
const NeverScrollableScrollPhysics(),
autoPlayInterval: const Duration(seconds: 5),
),
items: _getItems(banners.data.home),
)
What I get
What I want
any update on this?
No
padEnds: false