daily_pedometer 0.0.14 copy "daily_pedometer: ^0.0.14" to clipboard
daily_pedometer: ^0.0.14 copied to clipboard

PlatformAndroid

A Pedometer and Step Detection package for Android and iOS. Step count is streamed as the platform updates it.

daily_pedometer #

I measure my step count daily. Supports Android only

Permissions #

<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>

Example Usage #

See the [example app](https://github.com/ganer9r/daily_pedometer/blob/main/example/lib/main.dart) for a fully-fledged example.

Below is shown a more generalized example. Remember to set the required permissions, as described above. This may require you to manually allow the permission in the "Settings" on the phone.


DailyPedometer pedometer = DailyPedometer.create();
.stepCountStream.listen((event) async {
  setState(() {
    _platformVersion = " ${event} daily steps";
  });
});

1
likes
150
points
435
downloads

Publisher

unverified uploader

Weekly Downloads

A Pedometer and Step Detection package for Android and iOS. Step count is streamed as the platform updates it.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_timezone, plugin_platform_interface, rxdart, shared_preferences, timezone

More

Packages that depend on daily_pedometer