Skip to content

Commit

Permalink
Improve the haptic error pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k committed Nov 9, 2024
1 parent 8f82d0f commit 538ad25
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/smooth_app/lib/helpers/haptic_feedback_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ class SmoothHapticFeedback {
}

await HapticFeedback.heavyImpact();
return Future<void>.delayed(const Duration(milliseconds: 50), () {
HapticFeedback.heavyImpact();
});
await Future<void>.delayed(const Duration(milliseconds: 150));
await HapticFeedback.heavyImpact();
await Future<void>.delayed(const Duration(milliseconds: 150));
return HapticFeedback.heavyImpact();
}

static Future<bool> _areHapticFeedbackEnabled() async {
Expand Down

0 comments on commit 538ad25

Please sign in to comment.