Skip to content

Commit

Permalink
🔀 Merge pull request #34 from Fedodo/dev
Browse files Browse the repository at this point in the history
✨ Added select feedback
  • Loading branch information
LNA-DEV authored Jul 5, 2023
2 parents 2645d7e + d176f88 commit 8c08980
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions lib/logic/vibrate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ class VibrateFeedback {
bool canVibrate = await Vibrate.canVibrate;

if (!kIsWeb && canVibrate) {
if (canVibrate) {
Vibrate.feedback(FeedbackType.light);
}
Vibrate.feedback(FeedbackType.light);
}
}

static void feedbackSelect() async {
bool canVibrate = await Vibrate.canVibrate;

if (!kIsWeb && canVibrate) {
Vibrate.feedback(FeedbackType.selection);
}
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fedodo_general
description: A flutter package which contains general components of the Fedodo-UIs.
version: 1.8.1
version: 1.8.2
homepage: https://fedodo.org

environment:
Expand Down

0 comments on commit 8c08980

Please sign in to comment.