zeba_academy_ui_replay 0.0.1 copy "zeba_academy_ui_replay: ^0.0.1" to clipboard
zeba_academy_ui_replay: ^0.0.1 copied to clipboard

Record & replay UI interactions in Flutter for testing and debugging.

zeba_academy_ui_replay #

๐Ÿš€ Record & Replay UI Interactions in Flutter

zeba_academy_ui_replay is a lightweight Flutter package designed for recording and replaying user interactions such as taps and gestures. It is ideal for testing, debugging, and automation without relying on external services.


โœจ Features #

  • ๐ŸŽฅ Record taps & gestures
  • โ–ถ๏ธ Replay UI interactions
  • ๐Ÿ’พ Export logs (JSON)
  • ๐Ÿ“ก Works fully offline
  • โšก Lightweight & fast

๐Ÿ“ฆ Installation #

Add this to your pubspec.yaml:

dependencies:
  zeba_academy_ui_replay: ^0.0.1

Then run:

flutter pub get

๐Ÿš€ Getting Started #

1๏ธโƒฃ Import Package #

import 'package:zeba_academy_ui_replay/zeba_academy_ui_replay.dart';

2๏ธโƒฃ Initialize Recorder & Replayer #

final recorder = UIRecorder();
final replayer = UIReplayer();

3๏ธโƒฃ Wrap Your UI #

RecordableWidget(
  recorder: recorder,
  child: YourWidget(),
)

4๏ธโƒฃ Start & Stop Recording #

recorder.start();
recorder.stop();

5๏ธโƒฃ Replay Events #

await replayer.replay(
  recorder.events,
  (offset) {
    print("Tapped at: $offset");
  },
);

6๏ธโƒฃ Export Logs #

final path = await UIExporter.export(recorder.events);
print("Saved at: $path");

๐Ÿง  How It Works #

User Interaction
      โ†“
RecordableWidget
      โ†“
UIRecorder โ†’ Stores Events
      โ†“
Exporter โ†’ JSON File
      โ†“
UIReplayer โ†’ Simulates Events

๐Ÿงช Testing #

Run tests using:

flutter test

Includes:

  • Recorder tests
  • Replayer tests
  • Widget interaction tests

๐Ÿ“ Project Structure #

lib/
 โ”œโ”€โ”€ src/
 โ”‚   โ”œโ”€โ”€ models/
 โ”‚   โ”œโ”€โ”€ recorder/
 โ”‚   โ”œโ”€โ”€ replay/
 โ”‚   โ”œโ”€โ”€ widgets/
 โ”‚   โ””โ”€โ”€ utils/
 โ””โ”€โ”€ zeba_academy_ui_replay.dart

๐Ÿ”ฎ Roadmap #

  • โŒ Drag & swipe gesture support
  • โŒ Visual replay overlay
  • โŒ Speed control for replay
  • โŒ Widget key-based replay
  • โŒ Integration with Flutter test framework

๐Ÿ“œ License #

This project is licensed under the GNU General Public License v3.0 (GPL-3.0).

You are free to:

  • Use
  • Modify
  • Distribute

Under the condition that:

  • Source code must be disclosed
  • Same license must be applied

๐Ÿ‘จโ€๐Ÿ’ป About Me #

โœจ Iโ€™m Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects. You can learn more about me and my work at sufyanism.com or connect with me on Linkedin


๐ŸŒ Your all-in-one no-bloat hub! #

๐Ÿš€ Explore cutting-edge resources in coding, tech, and development at zeba.academy and code.zeba.academy. Empower yourself with practical skills through curated directives, real-world projects, and hands-on experience. Level up your tech game today! ๐Ÿ’ปโœจ

Zeba Academy is a learning platform dedicated to coding, technology, and development.

โžก Visit our main site: https://zeba.academy โžก Explore hands-on courses: https://code.zeba.academy โžก YouTube: https://www.youtube.com/@zeba.academy โžก Instagram: https://www.instagram.com/zeba.academy/


โญ Support #

If you like this project:

  • โญ Star the repo
  • ๐Ÿด Fork it
  • ๐Ÿ›  Contribute

๐Ÿ™Œ Contributions #

Contributions are welcome! Feel free to open issues or submit pull requests.


๐Ÿ’ฌ Feedback #

Have ideas or improvements? Open an issue or reach out โ€” your feedback helps make this better.


Thank you for visiting! โค๏ธ

0
likes
140
points
65
downloads

Documentation

API reference

Publisher

verified publisherzeba.academy

Weekly Downloads

Record & replay UI interactions in Flutter for testing and debugging.

Homepage

License

GPL-3.0 (license)

Dependencies

flutter, path_provider, uuid

More

Packages that depend on zeba_academy_ui_replay