BannerGalleryInFlutter
用Flutter实现的无限滑动Banner
可配置的属性
使用示例
/// 构建数据
List<BannerGalleryBean> _createTestData() {
List<BannerGalleryBean> list = new List<BannerGalleryBean>();
for (int n = 0; n < IMGS.length; n++) {
list.add(BannerGalleryBean(
id: n.toString(),
photoUrl: https://www.baidu.com/img/bd_logo1.png?where=super,
description: n.toString);
}
return list;
}
/// 构建Widget
BannerGalleryWidget(
data: _createTestData(),
indicatorSelectedColor: Theme.of(context).primaryColor,
)