presentation/providers/home_first_paint_cache_provider library

Classes

HomeFirstPaintCacheData
Last-known values from the previous session, persisted to SharedPreferences and re-read on cold start. The home screen renders these as fallbacks while the async providers (streakProvider, dueCardsProvider, myCurriculumDomainsProvider) refetch from Supabase.

Properties

homeFirstPaintCacheProvider FutureProvider<HomeFirstPaintCacheData>
Reads the home first-paint cache once and keeps the values alive for the session. Read with valueOrNull to get a fallback value or null.
final

Functions

homeFirstPaintCache(Ref<Object?> ref) Future<HomeFirstPaintCacheData>
Reads the home first-paint cache once and keeps the values alive for the session. Read with valueOrNull to get a fallback value or null.

Typedefs

HomeFirstPaintCacheRef = FutureProviderRef<HomeFirstPaintCacheData>