sunshine_events 0.1.0
sunshine_events: ^0.1.0 copied to clipboard
Automated event documentation with screenshots for Flutter applications.
example/example.md
🧑💻 How to Use #
- In your app initialization, set up
sunshine
with the desired options:
SunshineAnalytics.setup(
boardClient: miroBoardClient(
boardId: "your_board_id",
token: "your_api_token",
),
);
- To allow capturing screenshots you need to wrap the entire section you want to be tracked with a custom
Sunshine
widget.
runApp(
MaterialApp(
home: Sunshine(
child: Home(),
),
),
);
example: main.dev.dart
- In your current centralized analytics logging, add sunshine logs:
class CurrentAnalyticsLogger {
Future<void> logEvent(String name) {
// current analytics logging.
return SunshineAnalytics.log(name: name);
}
}