sunlight 0.1.1 copy "sunlight: ^0.1.1" to clipboard
sunlight: ^0.1.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:
SunlightAnalytics.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
0
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

Automatic event documentation with screenshots for Flutter applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, http_parser, mutex, path_provider, screenshot

More

Packages that depend on sunlight