Home State Providers
provider/provider.dart · StateProvider × 3
Overview
Three small StateProvider<int|bool> values backing the shell UI: bottomNavIndexProvider (active tab), homeCurrentPageIndicatorProvider (PageView dot), arcMenuProvider (radial menu open).
User Flow
- AppShellScaffold reads bottomNavIndexProvider; nav tap writes back.
- HomePage onPageChanged writes homeCurrentPageIndicatorProvider.
- AppShellScaffold toggles arcMenuProvider on the '+' tap and on backdrop tap.
Cases & Edge Cases
- Providers reset to 0/false when the ProviderScope is torn down (only at app kill) — they survive logout.
- bottomNavIndexProvider is indexed into a list whose length depends on auth state — callers must clamp.
Code References
- lib/src/features/shared/home/provider/provider.dart:5 // bottomNavIndexProvider
- lib/src/features/shared/home/provider/provider.dart:7 // homeCurrentPageIndicatorProvider
- lib/src/features/shared/home/provider/provider.dart:9 // arcMenuProvider
API Calls
Empty — fill this in later. Open the manifest and add content here.
Notes
These are legacy StateProviders (flutter_riverpod/legacy.dart) — fine for trivial values, but new state goes through NotifierProvider.