cph-cachet / flutter-plugins

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

Get steps By Interval equally distributed #1080

Open fl0tsch opened 1 week ago

fl0tsch commented 1 week ago

Plugin Name

health

Plugin Version

11.1.0

Device

Galaxy Note 20 Ultra

Operating System

Android 13

Describe the bug

When I fetch steps by Interval like

await Health() .getHealthIntervalDataFromTypes( startDate: start, endDate: endTime, types: types, interval: 60 * 60)

I get the steps equally distributed in each interval. See screenshot. At night I was sleeping, so I definitely didn’t take any steps. Something must be wrong. Thanks

getStepsByInterval

Steps to Reproduce

-

Expected Behavior

to see the steps in the interval when I did it

Actual Behavior

-

Flutter Logs

No response

Screenshots

No response

Flutter Doctor Output

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.4, on macOS 15.0 24A335 darwin-arm64, locale
    en-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] IntelliJ IDEA Community Edition (version 2023.3.2)
[✓] VS Code (version 1.94.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Additional Information

No response