Skip to content

yangxiaoweihn/BannerView

Repository files navigation

banner_view

A flutter BannerView package project.

function

Getting Started

add in pubspec.yaml

    banner_view: "^1.2.0"
    or
    banner_view: 
        git: https://github.com/yangxiaoweihn/BannerView.git
    import 'package:banner_view/banner_view.dart';
    new Container(
        alignment: Alignment.center,
        height: 200.0,
        child: new BannerView(
            [...]
        ),
    );

support properties:

    final List<Widget> banners;
    //init index
    final int initIndex;
    //switch interval
    final Duration intervalDuration;
    //animation duration
    final Duration animationDuration;
    final IndicatorContainerBuilder indicatorBuilder;
    final Widget indicatorNormal;
    final Widget indicatorSelected;
    //the margin of between indicator items
    final double indicatorMargin;
    final PageController controller;
    //whether cycle rolling
    final bool cycleRolling;
    //whether auto rolling
    final bool autoRolling;
    final Curve curve;
    final ValueChanged onPageChanged;
    final bool log;

Flutter QQ group ( 714494675 )

About

Flutter BannerView

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages