haptic_feedback 0.3.3+1 haptic_feedback: ^0.3.3+1 copied to clipboard
A Flutter plugin for haptic feedback. It uses the standard iOS haptics, and analog haptics on Android.
haptic_feedback #
A haptic feedback plugin for both iOS and Android.
While it utilizes standard iOS haptics, it aims to emulate these same haptic patterns on Android for a consistent experience across platforms.
Getting Started #
1. Add the dependency #
flutter pub add haptic_feedback
2. Use the plugin #
final canVibrate = await Haptics.canVibrate;
await Haptics.vibrate(HapticsType.success);
await Haptics.vibrate(HapticsType.warning);
await Haptics.vibrate(HapticsType.error);
await Haptics.vibrate(HapticsType.light);
await Haptics.vibrate(HapticsType.medium);
await Haptics.vibrate(HapticsType.heavy);
await Haptics.vibrate(HapticsType.rigid);
await Haptics.vibrate(HapticsType.soft);
await Haptics.vibrate(HapticsType.selection);