Last updated:
0 purchases
flutter haptic
flutter_haptic #
Flutter Plugin for calling mobile native Haptic feature
Requirement #
Flutter
flutter >= 2.0.0
dart >=2.12.0 <3.0.0(null safety)
iOS
iOS 13.0 or higher
Android
minSdkVersion 26 or higher
This plugin also requires to VIBRATE permission on Android devices.
(HapticFeedback cannot use within a plugin, so we imitate that using Vibrator).
How to use #
// Haptic Feedback for Success
Haptic.onSuccess();
// Haptic Feedback for Failure
Haptic.onFailure();
// Haptic Feedback for Selection
Haptic.onSelection();
copied to clipboard
For more detail, please check our example.
ref #
UIFeedbackGenerator Class Reference(iOS)
Vibrator(Android)
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.