diff --git a/lib/logic/vibrate.dart b/lib/logic/vibrate.dart index ebd7a65..87f1adb 100644 --- a/lib/logic/vibrate.dart +++ b/lib/logic/vibrate.dart @@ -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); } } } diff --git a/pubspec.yaml b/pubspec.yaml index fb8c0b8..b06967b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: