step_counter 0.0.2 step_counter: ^0.0.2 copied to clipboard
Flutter plugin that uses ObjC and Java to get a step count from HealthKit or the Google Fitness Store. The total steps today, steps during a time period, and steps during a time period in intervals ca [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add step_counter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
step_counter: ^0.0.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:step_counter/step_counter.dart';