Weird boot sound effects

This commit is contained in:
2025-03-27 00:22:41 +08:00
parent 38e1c51b45
commit 4589722c3b
7 changed files with 41 additions and 2 deletions

View File

@ -22,6 +22,7 @@ const kAppCustomFonts = 'app_custom_fonts';
const kAppMixedFeed = 'app_mixed_feed';
const kAppAutoTranslate = 'app_auto_translate';
const kAppHideBottomNav = 'app_hide_bottom_nav';
const kAppSoundEffects = 'app_sound_effects';
const kAppAprilFoolFeatures = 'app_april_fool_features';
const Map<String, FilterQuality> kImageQualityLevel = {
@ -101,6 +102,15 @@ class ConfigProvider extends ChangeNotifier {
return prefs.getBool(kAppAprilFoolFeatures) ?? true;
}
bool get soundEffects {
return prefs.getBool(kAppSoundEffects) ?? true;
}
set soundEffects(bool value) {
prefs.setBool(kAppSoundEffects, value);
notifyListeners();
}
set aprilFoolFeatures(bool value) {
prefs.setBool(kAppAprilFoolFeatures, value);
notifyListeners();