Carousel Slider — Flutter

Vijay R
vijaycreations
Published in
2 min readJun 7, 2020

--

In this article we shall be discussing how to implement Carousel Slider Widget in Flutter.

So as seen above, the carousel slider can be used for manually/automatically sliding over those image that we have provided.

Dependencies and packages

carousel_slider: ^2.0.0

import ‘package:carousel_slider/carousel_slider.dart’;

Implementation

To develop the above shown screen, we will be making use of CarouselSlider.builder() widget, which takes the itemCount(no.of images) and the itemBuilder (which returns the widget that needs to be displayed over the carousel slider.[i.e., images — in our case]) also the CarouselSlider itself can be configured using the parameter called options .Let us now discuss it one by one.

Developing the CarouselSlider.builder()

I have already specified the list of images that we shall be using for this carousel slider under the name carouselimages. So we can make use of that list name itself in place of itemCount and for declaring the…

--

--

Vijay R
vijaycreations

Hai👋 I’m a flutter developer experienced in designing and developing stunning mobile apps. Reach out for freelance projects: calico.takeoff_01@icloud.com