feat: polish system animation fetching
CI / format (push) Has been cancelled
CI / test (push) Has been cancelled
CI / packaging (push) Has been cancelled

This commit is contained in:
Tien Do Nam
2025-03-17 03:09:38 +01:00
parent a1607fe5e3
commit 09b9482358
+5 -2
View File
@@ -166,8 +166,11 @@ class PersistenceService {
}
if (isFirstAppStart) {
_logger.info('Is FirstStartUp');
await prefs.setBool(_enableAnimations, await getSystemAnimationsStatus());
final systemAnimations = await getSystemAnimationsStatus();
if (!systemAnimations) {
_logger.info('System animations are disabled, disabling animations in the app.');
await prefs.setBool(_enableAnimations, false);
}
}
if (prefs.getString(_colorKey) == null) {