sa_progress_bar 0.0.3 sa_progress_bar: ^0.0.3 copied to clipboard
A progress bar controller
SaProgressBar #
A simple progress bar controller
Screenshot #
How To Use #
SaProgressBar(
controller: _controller,
onMoved: (value) {
// progress on moved callback
_controller.moveTo(value);
//print('onMove: $value');
},
onTap: (value) {
// progress on tap callback
_controller.moveTo(value);
print('onTap: $value');
},
)
ProgressController
: responsible for control the progress on main stream and buffer stream
please check out controller.moveTo()
controller.moveBufferTo()
note that if you don't call these methods on callback function, the indicator would not response.
onMoved
: indicator's drag action callback.
onTap
: user tap on the progress bar. (This can make your indicator jump to the following position)