flutter_health_kit 0.0.1-dev.9 flutter_health_kit: ^0.0.1-dev.9 copied to clipboard
Apple HealthKit plugin for Flutter to reading and observing records
flutter_health_kit #
This plugin allows Flutter apps to read and subscribe to changes in the Apple HealthKit store.
Getting Started #
Request authorization to read data from the HealthKit store:
bool isAuthorized = await FlutterHealthKit.requestAuthorization(
read: [HKSampleTypeIdentifier.workout]);
Read data from the HealthKit store:
final workouts = await FlutterHealthKit.querySampleType<Workout>(HKSampleTypeIdentifier.workout);