swetrix_flutter 0.1.1
swetrix_flutter: ^0.1.1 copied to clipboard
A lightweight Swetrix Events API client for Flutter and Dart apps.
0.1.1 #
- Initial public release of the Swetrix Events API client for Flutter/Dart.
- Added
SwetrixFlutterClienthelper that auto-collects OS, OS version, device type, language, country, browser (web), app version, and build number. - Automatically injects
User-AgentandX-Client-IP-Addressheaders (with configurable resolver) so Swetrix deduplicates visitors out of the box. - Persist visitor identifiers with
SharedPreferencesto keep unique user counts stable across sessions. - Supports page view, custom event, error, and heartbeat tracking with automatic visitor metadata and optional self-hosted endpoints.
- Ships with unit tests and an updated Flutter example leveraging the new helper.