sunlight 0.2.1 copy "sunlight: ^0.2.1" to clipboard
sunlight: ^0.2.1 copied to clipboard

Automatic event documentation with screenshots for Flutter applications.

example/example.md

🧑‍💻 How to Use #

  1. In your app initialization, set up sunlight with the desired options:
SunlightAnalyticsFlutter.setup(
  boardClient: miroBoardClient(
    boardId: "your_board_id",
    token: "your_api_token",
  ),
);
  1. To allow capturing screenshots you need to wrap the entire section you want to be tracked with a custom Sunlight widget.
runApp(
  MaterialApp(
    home: Sunlight(
      child: Home(),
    ),
  ),
);

example: main.dev.dart

  1. In your current centralized analytics logging, add sunlight logs:
class CurrentAnalyticsLogger {
  Future<void> logEvent(String name) {
    // current analytics logging.
    return SunlightAnalytics.log(name: name);
  }
}
1
likes
150
points
42
downloads

Publisher

unverified uploader

Weekly Downloads

Automatic event documentation with screenshots for Flutter applications.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

http, http_parser, mutex

More

Packages that depend on sunlight