pedometer 4.0.1 pedometer: ^4.0.1 copied to clipboard
A Pedometer and Step Detection package for Android and iOS. Step count is streamed as the platform updates it.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add pedometer
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
pedometer: ^4.0.1
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:pedometer/pedometer.dart';