Make page transition animation optional (#683)

This commit is contained in:
Imran Remtulla
2023-07-16 11:36:49 -04:00
parent 785bba1f45
commit 6b16857186
16 changed files with 42 additions and 2 deletions

View File

@@ -291,4 +291,13 @@ class SettingsProvider with ChangeNotifier {
prefs?.setBool('checkUpdateOnDetailPage', show);
notifyListeners();
}
bool get disablePageTransitions {
return prefs?.getBool('disablePageTransitions') ?? false;
}
set disablePageTransitions(bool show) {
prefs?.setBool('disablePageTransitions', show);
notifyListeners();
}
}