flutter pageview指示器。支持自定义指示器样式
在pubspec.yaml
引入:
dependencies:
pageview_indicator_plugins: ^0.0.2
基本用法:
PageIndicator(
length: 6,
pageController: pageController,
)
可以通过自定义Decoration属性修改圆点形状
PageIndicator(
length: 6,
pageController: secondController,
currentWidth: 16,
currentDecoration: BoxDecoration(
color: Colors.cyanAccent,
borderRadius: BorderRadius.circular(10)),
)