fix: crashlytics

This commit is contained in:
problematicconsumer
2023-09-16 15:16:20 +03:30
parent 22d1cd17e2
commit f164140f24
7 changed files with 153 additions and 83 deletions

View File

@@ -21,6 +21,23 @@ class SilentStartNotifier extends _$SilentStartNotifier {
}
}
@Riverpod(keepAlive: true)
class AutoCrashReport extends _$AutoCrashReport {
late final _pref = Pref(
ref.watch(sharedPreferencesProvider),
"auto_crash_report",
false,
);
@override
bool build() => _pref.getValue();
Future<void> update(bool value) {
state = value;
return _pref.update(value);
}
}
@Riverpod(keepAlive: true)
class DebugModeNotifier extends _$DebugModeNotifier {
late final _pref = Pref(