haptic_feedback_pro 1.0.3
haptic_feedback_pro: ^1.0.3 copied to clipboard
A Flutter plugin for triggering rich haptic feedback on iOS and Android. Supports impact, notification, selection, and full vibration types.
1.0.3 #
- Improved Android haptic reliability — wrapped trigger in try/catch with proper error reporting via
result.error - Added
VibrationAttributeswithUSAGE_TOUCHfor Android 13+ (API 33+) for better haptic classification - Used
VibratorManager.defaultVibratorcorrectly on Android 12+ (API 31+) instead of calling vibrate directly on the manager
1.0.2 #
- Updated README section
1.0.1 #
- Fixed Android haptic not working — added missing
VIBRATEpermission toAndroidManifest.xml - Fixed
createPredefined()crash on Android API 26–28 — added fallbackcreateOneShoteffects
1.0.0 #
- Initial release of
haptic_feedback_pro - Added
HapticFeedbackPro.trigger()as a static method - Added 10 haptic feedback types via
FeedbackTypeenum:light,medium,heavy,soft,rigid— impact feedbacksuccess,warning,error— notification feedbackselection— selection feedbackvibration— full device vibration
- iOS support using
UIImpactFeedbackGenerator,UINotificationFeedbackGenerator,UISelectionFeedbackGenerator, andAudioServicesPlaySystemSound - Android support using
VibrationEffectwith API 29+ predefined effects and fallbacks for API 26–28