flutter_advanced_seekbar

HorizontalVertical

install

Add to pubspec

the latest version is pub package

dependencies:
  flutter_advanced_seekbar: $latest_version

Usage


AdvancedSeekBar

AdvancedVerticalSeekBar

AdvancedSeekBar(
              Colors.red,
              10,
              Colors.blue,
              lineHeight: 5,
              defaultProgress: 50,
              scaleWhileDrag: true,
              percentSplit: 10,
              percentSplitColor: Colors.green,
              percentSplitWidth: 1,
              seekBarStarted: () {
              },
              seekBarProgress: (v) {
              },
              seekBarFinished: (v) {
              },
            )
字段注释默认值必填
lineColor背景条的颜色必填
thumbSize圆点默认大小必填
thumbColor圆点的颜色必填
defaultProgress原点默认指向0非必填
lineHeight背景条的高度thumbSize/2非必填
seekBarStarted开始seek回调非必填
seekBarProgressseek进度回调非必填
seekBarFinished完成seek回调非必填
scaleWhileDrag圆点在拖动时是否放大true非必填
percentSplit是否需要拆分进度 参考demo3/4false非必填
percentSplitWidth拆分条的宽度 输入值最小为20非必填
percentSplitColor拆分条的颜色非必填
autoJump2Split如果拆分 seek后是否必须到拆分点上 参考demo4true非必填
fillProgress完成的进度是否标记为thumb的颜色 参考demo1false非必填

Libraries

flutter_seekbar