Service Layer low complexity mobile
2
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Riverpod state management layer for the statistics feature. Manages async loading of aggregated stats, applies client-side filter state, and coordinates cache reads from the Stats Store before issuing network requests. Exposes reactive providers consumed directly by the Statistics Dashboard Screen and filter widgets.

Feature: Personal Activity Statistics

stats-riverpod-provider

Responsibilities

  • Expose reactive AsyncValue providers for stats data
  • Apply and propagate filter state changes across dependent providers
  • Coordinate cache-first data loading with background refresh
  • Handle loading, error, and empty states for the UI

Interfaces

statsProvider(StatsFilter filter) → AsyncValue<StatsPayload>
statsFilterProvider → StateNotifier<StatsFilter>
invalidateStats()
refreshInBackground()

Relationships

Dependencies (2)

Components this component depends on