cycle_banner 0.0.3
cycle_banner: ^0.0.3 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);
           },
         )
NameTypedescription
bannerHeightdoublebanner的高度
normalColorColor普通颜色
currentColorColor指示器选中颜色
indicatorSizedouble指示器大小
separatorSizedouble指示器之间的间隔
indicatorMarginEdgeInsetsGeometry指示器间隔
indicatorAlignmentAlignmentDirectional指示器位置
isAutoRollingbool是否自动滚动
isCycleRollingbool是否无限滚动
intervalDurationDuration滚动间隔
animationDurationDuration动画时间
4
likes
70
pub points
24%
popularity

A new Flutter package.

Homepage

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on cycle_banner