thumper 2.2.0
thumper: ^2.2.0 copied to clipboard
Widget for controlling an Iterable. Shows reset, forward step, play, pause and frequency controls.
Thumper #
A Thumper
is a flutter widget that controls an Iterable
.
Buttons allow reset, forward step, and play/pause. A slider controls the thumper's frequency (the 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:
# Confirm you have some devices.
flutter devices
# Get the code
git clone git@github.com:monopole/thumper.git
cd thumper
# then either
make demo-chrome
# or
make demo-android
copied to clipboard
For a more complex Thumper
demo see the GolGrid
widget.