cycle_banner 0.0.4 copy "cycle_banner: ^0.0.4" to clipboard
cycle_banner: ^0.0.4 copied to clipboard

A new Flutter package.

cycle_banner #

A flutter CycleBanner package project.

Getting Started #

add in pubspec.yaml

cycle_banner: ^0.0.3

Usage #

   CycleBanner(
           images,
           (BuildContext context, int index) {
             return Image.network(images[index % images.length], width: double.maxFinite, fit: BoxFit.cover);
           },
         )
Name Type description
bannerHeight double banner的高度
normalColor Color 普通颜色
currentColor Color 指示器选中颜色
indicatorSize double 指示器大小
separatorSize double 指示器之间的间隔
indicatorMargin EdgeInsetsGeometry 指示器间隔
indicatorAlignment AlignmentDirectional 指示器位置
isAutoRolling bool 是否自动滚动
isCycleRolling bool 是否无限滚动
intervalDuration Duration 滚动间隔
animationDuration Duration 动画时间
5
likes
90
pub points
50%
popularity

Publisher

unverified uploader

A new Flutter package.

Homepage

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on cycle_banner