Change mark new profile active

This commit is contained in:
problematicconsumer
2023-09-10 14:16:44 +03:30
parent 7920cb7c06
commit 830a5cd75f
3 changed files with 27 additions and 3 deletions

View File

@@ -31,3 +31,20 @@ class DebugModeNotifier extends _$DebugModeNotifier {
return _pref.update(value);
}
}
@riverpod
class MarkNewProfileActive extends _$MarkNewProfileActive {
late final _pref = Pref(
ref.watch(sharedPreferencesProvider),
"mark_new_profile_active",
true,
);
@override
bool build() => _pref.getValue();
Future<void> update(bool value) {
state = value;
return _pref.update(value);
}
}