Skip to content

Fix inconsistent step of day interval#46

Merged
Jozys merged 1 commit intomainfrom
fix/step-count-inconsistency
Mar 18, 2025
Merged

Fix inconsistent step of day interval#46
Jozys merged 1 commit intomainfrom
fix/step-count-inconsistency

Conversation

@Jozys
Copy link
Copy Markdown
Collaborator

@Jozys Jozys commented Mar 15, 2025

  • In the badges a 24 hour interval is used, in the today screen a 0.00 until current time was used.
  • This caused some weird inconsistencies between the step amount of these two components
  • Because of that it was unified.

This pull request includes a change to the StatsViewModel class in the lib/presentation/today/view_model/stats_view_model.dart file. The change updates the time interval used for fetching health statistics to cover the entire day from start to end.

Time interval update:

- In the badges a 24 hour interval is used, in the today screen a 0.00 until current time was used.
- This caused some weird inconsistencies between the step amount of these two components
- Because of that it was unified.
@Jozys Jozys added bug Something isn't working lib Label for flutter lib issues labels Mar 15, 2025
@Jozys Jozys requested a review from ScreepCode March 15, 2025 21:02
@Jozys Jozys self-assigned this Mar 15, 2025
@Jozys Jozys merged commit 91802cf into main Mar 18, 2025
@Jozys Jozys deleted the fix/step-count-inconsistency branch March 18, 2025 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lib Label for flutter lib issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants