accurate_step_counter 2.0.0
accurate_step_counter: ^2.0.0 copied to clipboard
Production-grade step counter for Flutter Android. Uses native TYPE_STEP_COUNTER sensor via foreground service for accurate tracking in foreground, background, and terminated states. Includes SQLite l [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add accurate_step_counterThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
accurate_step_counter: ^2.0.0Alternatively, 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:accurate_step_counter/accurate_step_counter.dart';