flutter_image_slider 0.0.2 copy "flutter_image_slider: ^0.0.2" to clipboard
flutter_image_slider: ^0.0.2 copied to clipboard

It's a carousel package for image slider with a diffrent options, include null safety.

example/example.dart

import 'package:flutter_image_slider/carousel.dart';
import 'package:flutter/material.dart';

class Home extends StatefulWidget {
  Home();

  @override
  _HomeState createState() => _HomeState();
}

class _HomeState extends State<Home> {
  @override
  Widget build(BuildContext context) {
    Size size = MediaQuery.of(context).size;
    return Container(
      height: size.height,
      width: size.width,
      child: Column(
        children: [
          Container(
              height: size.height * 0.2,
              width: size.width,
              child: Carousel(
                indicatorBarColor: Colors.black.withOpacity(0.2),
                autoScrollDuration: Duration(seconds: 2),
                animationPageDuration: Duration(milliseconds: 500),
                activateIndicatorColor: Colors.black,
                animationPageCurve: Curves.bounceInOut,
                indicatorBarHeight: 50,
                indicatorHeight: 20,
                indicatorWidth: 20,
                unActivatedIndicatorColor: Colors.grey,
                stopAtEnd: true,
                autoScroll: true,
                // widgets
                items: [
                  Container(
                    color: Colors.blue,
                  ),
                  Container(
                    color: Colors.green,
                  ),
                  Container(
                    color: Colors.yellow,
                  )
                ],
              )
              )
        ],
      ),
    );
  }
}
21
likes
110
pub points
88%
popularity

Publisher

unverified uploader

It's a carousel package for image slider with a diffrent options, include null safety.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_image_slider