Overview
The fitness package is a Flutter plugin that enables access to step count data from native health platforms. On iOS, it integrates with HealthKit, and on Android, it connects to Google Fit. This allows developers to retrieve step count information in a cross-platform manner, simplifying health data integration into fitness or wellness applications. The plugin handles platform-specific setup and permissions automatically, providing a consistent API across devices.
Use cases
- Tracking daily step counts
- Building fitness dashboards
- Integrating with health analytics
- Enabling user activity goals
- Supporting wellness apps
Key features
- Cross-platform step count access
- HealthKit (iOS) integration
- Google Fit (Android) integration
- Automatic permission handling
- Simple API for step data retrieval
Suitable for
- Fitness app developers
- Wellness application creators
- Health data integrators
- Mobile developers targeting both iOS and Android
Considerations
- Requires user permission on both platforms
- Needs proper configuration in iOS and Android manifests
- Limited to step count (not other health metrics)
- Depends on user having HealthKit or Google Fit enabled
- May require background execution setup for continuous tracking