flutter_images_slider 0.0.2

Flutter Android iOS web

A carousel slider widget, support infinite scroll and custom indicator, with autoplay feature.

flutter_images_slider #

A carousel slider widget, support infinite scroll and custom indicator, with autoplay feature.

Installation #

Add carousel_slider: ^0.0.1 in your pubspec.yaml dependencies. And import it:

import 'package:flutter_images_slider/flutter_images_slider.dart';

How to use #

Create a ImagesSlider widget, and pass the required params:

        ImagesSlider(
          items: map<Widget>(imgList, (index, i) {
            return Container(
              decoration: BoxDecoration(
                  image: DecorationImage(
                      image: NetworkImage(i),
                      fit: BoxFit.cover
                  )
              ),
            );
          }),
          autoPlay: true,
          viewportFraction: 1.0,
          aspectRatio: 2.0,
          distortion: false,
          align: IndicatorAlign.bottom,
          indicatorWidth: 5,
          updateCallback: (index) {
            setState(() {
              _current = index;
            });
          },
        )

Credits #

flutter_carousel_slider

3
likes
100
pub points
79%
popularity

A carousel slider widget, support infinite scroll and custom indicator, with autoplay feature.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

orazz.tm@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_images_slider