sonarfit_flutter 2.0.0
sonarfit_flutter: ^2.0.0 copied to clipboard
Flutter plugin for SonarFit SDK - AI-powered strength training with real-time rep detection
Changelog #
All notable changes to the SonarFit Flutter plugin will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
2.0.0 - 2025-01-27 #
Added #
WorkoutStatusenum for tracking completion status (.completedor.stoppedEarly)- Error code
E_CANCELLEDthrown when user dismisses workout before starting - Error code
E_NO_RESULTfor unexpected nil results from SDK
Changed #
deviceTypeparameter inWorkoutConfigis now required (must specify.watchor.airpods)WorkoutResultnow usesstatus: WorkoutStatusinstead of boolean flags- All
WorkoutResultfields are now required (non-nullable) - User cancellations now throw
SonarFitExceptioninstead of returning partial results
Platform Support #
- iOS 17.0+
- Flutter 3.3.0+
- Dart 3.0.0+
- SonarFitKit iOS SDK 2.0.1
1.0.0 - 2025-01-25 #
Added #
- Initial release of SonarFit Flutter plugin
- Built-in workout UI with
SonarFit.presentWorkout() - Support for 3 workout types: Squat, Deadlift, Bench Press
- Automatic rep detection using Apple Watch or AirPods Pro
- Real-time progress tracking with set/rep counters
- Rest timer management with customizable durations
- Permission handling for motion sensors
- Complete Dart models:
WorkoutConfig,WorkoutResult,WorkoutSet - Comprehensive error handling with
SonarFitException - Example app demonstrating basic usage
- Full API documentation in README
Platform Support #
- iOS 17.0+
Dependencies #
- Flutter SDK: 3.3.0+
- Dart SDK: 3.0.0+
- SonarFitKit iOS SDK: 2.0.1