sunlight_flutter 0.1.0 copy "sunlight_flutter: ^0.1.0" to clipboard
sunlight_flutter: ^0.1.0 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);
  }
}
0
likes
150
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

Automatic event documentation with screenshots for Flutter applications.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path_provider, screenshot, sunlight

More

Packages that depend on sunlight_flutter