gscarousel 0.0.1 copy "gscarousel: ^0.0.1" to clipboard
gscarousel: ^0.0.1 copied to clipboard

A new Flutter package project.

GSCarousel #

A simple widget wrapper to create image slideshow banner

Demo #

Demo

See example for details

Usage #

Add the package to your pubspec.yml file.

dependencies:
  gscarousel: ^0.0.1

Next, import the library into your widget.

import 'package:gscarousel/gscarousel.dart';

Now, all you have to do is simply wrap your widget as a child of GSCarousel

new Container(
    child: new SizedBox(
    height: 140.0,
    child: new GSCarousel(
        images: [
        new NetworkImage(
                ''),
            new NetworkImage(
                ''),
            new NetworkImage(
                ''),
            new NetworkImage(
                ''),
        ],
        indicatorSize: const Size.square(8.0),
        indicatorActiveSize: const Size(18.0, 8.0),
        indicatorColor: Colors.white,
        indicatorActiveColor: Colors.redAccent,
        animationCurve: Curves.easeIn,
        contentMode: BoxFit.cover,
        // indicatorBackgroundColor: Colors.greenAccent,
    ),
    ),
)

Issues and feedback #

Please file issues to send feedback or report a bug. Thank you!

3
likes
20
pub points
51%
popularity

Publisher

unverified uploader

A new Flutter package project.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on gscarousel