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动画时间

Libraries

cycle_banner