gesture_recorder 0.1.1 copy "gesture_recorder: ^0.1.1" to clipboard
gesture_recorder: ^0.1.1 copied to clipboard

gesture_recorder enables you to record and replay gesture events

gesture_recorder #

gesture_recorder enables you to "record" all the gesture event happening during recording.

The recorded data can be replayed, which means you can duplicate exactly the same behavior again and again.

Features #

  • ✅ record / replay
  • ❌ persist recorded data
  • ❌ customize / mimic gesture event

Getting started #

First, place GestureRecorder at the top of the entire widget tree.

GestureRecorder(
  child: MaterialApp(),
),

You can access the controller by calling static methods provided by GestureRecorder like below.

/// start recording
GestureRecorder.start(context);

/// stop recording and obtain recorded event data
final data = await GestureRecorder.stop(context);

/// replay recorded event data
await GestureDetector.replay(context, data);

Also, you can observe RecordState from GestureRecorder.

/// observe [RecordState]. Once the state changes, observing widget is rebuilt.
final recordState = GestureRecorder.stateOf(context);

Contact #

If you have anything you want to inform me (@chooyan-eng), such as suggestions to enhance this package or functionalities you want etc, feel free to make issues on GitHub or send messages on X @tsuyoshi_chujo (Japanese @chooyan_i18n).

14
likes
160
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

gesture_recorder enables you to record and replay gesture events

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on gesture_recorder