fixed vibration switch

This commit is contained in:
MaticIvesic committed 2026-02-06 16:42:40 +01:00
1 parent ba2dc23c6c
commit eed999d2ab
8 files changed
+162 -91

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ class SettingsController extends ChangeNotifier {
}
Future<void> toggleVibration(bool value) async {
print("Toggling vibration to: $value");
_vibrationEnabled = value;
final prefs = await SharedPreferences.getInstance();
await prefs.setBool('vibration_enabled', value);