Add control flag for haptic logs

This commit is contained in:
Shawn 2022-10-25 00:03:51 -06:00
parent e767fc0c21
commit 8c9c9c46d6

View File

@ -5,8 +5,9 @@ import 'package:wonders/common_libs.dart';
class AppHaptics { class AppHaptics {
// note: system sounds are pretty buggy on Android: https://github.com/flutter/flutter/issues/57531 // note: system sounds are pretty buggy on Android: https://github.com/flutter/flutter/issues/57531
static bool debugSound = kDebugMode; static bool debugSound = kDebugMode && enableDebugLogs;
static bool debugLog = kDebugMode; static bool debugLog = kDebugMode && enableDebugLogs;
static bool enableDebugLogs = false;
static void buttonPress() { static void buttonPress() {
// Android/Fuchsia expect haptics on all button presses, iOS does not. // Android/Fuchsia expect haptics on all button presses, iOS does not.