cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
550 stars 674 forks source link

pedometer version 4.0.1 #889

Open abdulrehman192 opened 9 months ago

abdulrehman192 commented 9 months ago

Remember to specify the plugin name in the title!

Device / Emulator and OS

Device : Android version: 12

Describe the bug

The plugin did not gives the daily or current steps count instead its giving the overall total steps recorded in the device. My device shows the today steps I have taken 1234 while the plugin gives the value of 15532. Its not giving the accurate value of steps was taken in current day.

To Reproduce

Kindly check the plugin and gives an options to fetch the daily steps from stream and you can provide the time frame like from dateTime to dateTime steps count. There must be an option to reset the step count currently I need to restart my phone.

Expected behavior

I am expecting their must me accurate daily step counts which my device is recording. If possible just get the device daily step stream.

Actual behavior

The Stream shows the total steps taken on my device from the last restart. It should be given the daily steps

Screenshots

If applicable, add screenshots to help explain your problem.

Flutter doctor

`[√] Flutter (Channel stable, 3.16.8, on Microsoft Windows [Version 10.0.19045.3996], locale en-PK) • Flutter version 3.16.8 on channel stable at C:\src\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 67457e669f (2 weeks ago), 2024-01-16 16:22:29 -0800 • Engine revision 6e2ea58a5c • Dart version 3.2.5 • DevTools version 2.28.5

[√] Windows Version (Installed version of Windows is version 10 or higher)

[X] Android toolchain - develop for Android devices X Unable to locate Android SDK. Install Android Studio from: https://developer.android.com/studio/index.html On first launch it will assist you in installing the Android SDK components. (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, please use flutter config --android-sdk to update to that location.

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.33) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools • Visual Studio Build Tools 2019 version 16.11.34407.143 X The current Visual Studio installation is incomplete. Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.

[!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] IntelliJ IDEA Community Edition (version 2023.3) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.3.2 • Flutter plugin version 77.0.1 • Dart plugin version 233.13763.5

[√] VS Code (version 1.85.2) • VS Code at C:\Users\mrabd\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.80.0

[√] Connected device (2 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.3996] • Edge (web) • edge • web-javascript • Microsoft Edge 121.0.2277.83

[√] Network resources • All expected network resources are available.

! Doctor found issues in 4 categories.`

knight0zh commented 8 months ago

I also have the same needs. The current practice is to record the total number of steps as a starting point during the first run of the day, and then subtract the steps generated in the next time period