Skip to content
pubscout

pedometer_2

5.0.4, released 2 years ago by an unverified publisher

Pedometer and step detection plugin for Android and iOS.

$ flutter pub add pedometer_2
Source repository

What it does

Provides step counts over time ranges, real-time step streaming, and pedestrian status updates using device sensors. Supports both Android and iOS platforms.

AI-written summary of version 5.0.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to track user steps and walking activity in real-time.
  • You want to retrieve historical step counts over specific date ranges.

Skip it when

  • Your target Android devices run versions older than Android 10 (minSDK level 29).
  • You require guaranteed step counting across all hardware models without sensor compatibility issues.

Strengths

  • Supports both Android and iOS.
  • Provides real-time step streams and pedestrian status.
  • Allows querying step count for specific date ranges.

Weaknesses

  • Requires minimum Android 10 (minSDK level 29).
  • Certain manufacturers or older phones may lack necessary sensor support.
  • First-time usage after installation returns 0 steps.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires native configuration including Info.plist motion usage description and Podfile updates for iOS, and minimum Android 10, Gradle 8.4, and Kotlin 1.9.10 for Android.

StreamSubscription? _subStepCount;

@override
void initState() {
  super.initState();
  _subStepCount = Pedometer().stepCountStream().listen((steps) => print('Steps: $steps'));
}

@override
void dispose() {
  _subStepCount?.cancel();
  super.dispose();
}

Alternatives

Packages that do the same job and could replace pedometer_2.

Works with

Packages commonly used together with pedometer_2: ones it builds on, ones built on it, and its own family.