sa_progress_bar 0.0.2 copy "sa_progress_bar: ^0.0.2" to clipboard
sa_progress_bar: ^0.0.2 copied to clipboard

outdated

A progress bar controller

SaProgressBar #

A simple progress bar controller

Screenshot #

Progressbar

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)

2
likes
0
pub points
39%
popularity

Publisher

unverified uploader

A progress bar controller

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on sa_progress_bar