Able to turn off animation (for message only for now)

This commit is contained in:
2025-10-13 00:22:30 +08:00
parent 681ead02eb
commit 389fa515ba
6 changed files with 122 additions and 88 deletions

View File

@@ -784,6 +784,22 @@ class SettingsScreen extends HookConsumerWidget {
},
),
),
// Disable animation settings
ListTile(
minLeadingWidth: 48,
title: Text('settingsDisableAnimation').tr(),
contentPadding: const EdgeInsets.only(left: 24, right: 17),
leading: const Icon(Symbols.animation),
trailing: Switch(
value: settings.disableAnimation,
onChanged: (value) {
ref
.read(appSettingsNotifierProvider.notifier)
.setDisableAnimation(value);
},
),
),
];
// Desktop-specific settings