flutter_carousel_slider icon indicating copy to clipboard operation
flutter_carousel_slider copied to clipboard

An option for viewportFraction to be visible for only one side.

Open nehal076 opened this issue 3 years ago • 3 comments

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 image

What I want image

nehal076 avatar Nov 05 '21 20:11 nehal076

any update on this?

himsa avatar Dec 21 '21 09:12 himsa

No

nehal076 avatar Jan 27 '22 17:01 nehal076

padEnds: false

tnitsiri avatar Dec 09 '23 18:12 tnitsiri