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'. - MasteryIntroSeen
-
Whether the user has dismissed the one-time mastery-ladder intro banner
shown at the top of TopicTreeScreen. The standalone
/onboarding/masteryscreen was removed in favour of this contextual banner — the explanation lands the moment the user opens their first domain's topic tree, then never again. - ReviewIntroSeen
-
Whether the user has dismissed the one-time spaced-repetition intro
banner shown at the top of ReviewSessionScreen. The standalone
/onboarding/reviewscreen was removed in favour of this contextual banner — the explanation lands the moment the user enters their first review session, then never again. - 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 -
masteryIntroSeenProvider
→ AutoDisposeAsyncNotifierProviderImpl<
MasteryIntroSeen, bool> -
Whether the user has dismissed the one-time mastery-ladder intro banner
shown at the top of TopicTreeScreen. The standalone
/onboarding/masteryscreen was removed in favour of this contextual banner — the explanation lands the moment the user opens their first domain's topic tree, then never again.final -
reviewIntroSeenProvider
→ AutoDisposeAsyncNotifierProviderImpl<
ReviewIntroSeen, bool> -
Whether the user has dismissed the one-time spaced-repetition intro
banner shown at the top of ReviewSessionScreen. The standalone
/onboarding/reviewscreen was removed in favour of this contextual banner — the explanation lands the moment the user enters their first review session, then never again.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