presentation/providers/user_prefs_provider library
Classes
- LastActiveOrgId
- Last org the user was looking at in org-mode. Used to restore the correct active org when the mode-toggle flips back to org shell or after restart.
- LastUsedMode
-
Last mode the user was in (
'personal'or'org'). Determines where admins land after login — members always get'personal'. - ThemeModePref
-
User-selected theme (System / Light / Dark). Persisted to
SharedPreferences so the choice survives restart. Watched by the
root MaterialApp.themeMode in
main.dart.
Properties
-
lastActiveOrgIdProvider
→ AutoDisposeAsyncNotifierProviderImpl<
LastActiveOrgId, String?> -
Last org the user was looking at in org-mode. Used to restore the correct
active org when the mode-toggle flips back to org shell or after restart.
final
-
lastUsedModeProvider
→ AutoDisposeAsyncNotifierProviderImpl<
LastUsedMode, String> -
Last mode the user was in (
'personal'or'org'). Determines where admins land after login — members always get'personal'.final -
themeModePrefProvider
→ AsyncNotifierProviderImpl<
ThemeModePref, ThemeMode> -
User-selected theme (System / Light / Dark). Persisted to
SharedPreferences so the choice survives restart. Watched by the
root MaterialApp.themeMode in
main.dart.final -
userPrefsDatasourceProvider
→ Provider<
UserPrefsDatasource> -
See also userPrefsDatasource.
final
Functions
-
userPrefsDatasource(
Ref< Object?> ref) → UserPrefsDatasource