thumper 1.0.2 thumper: ^1.0.2 copied to clipboard
Widget for controlling an Iterable. Shows reset, forward step, play, pause and speed controls.
Thumper #
A Thumper
is a flutter widget that controls an Iterable
.
Buttons allow reset, forward step, and play/pause. A slider controls iteration speed.
There's no backward step, as the basic Iterator interface doesn't require a reversible state generator.
Example #
The example iterates through a list of fruits.
initial | playing |
---|---|
To try it in chrome, install beta channel flutter then:
git clone git@github.com:monopole/thumper.git
cd thumper
flutter test
cd example
flutter -d chrome run
For a more complex Thumper
demo see the GolGrid
widget.