haptic_feedback 0.1.0 copy "haptic_feedback: ^0.1.0" to clipboard
haptic_feedback: ^0.1.0 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(HapticType.success);
await Haptics.vibrate(HapticType.warning);
await Haptics.vibrate(HapticType.error);
await Haptics.vibrate(HapticType.light);
await Haptics.vibrate(HapticType.medium);
await Haptics.vibrate(HapticType.heavy);
await Haptics.vibrate(HapticType.rigid);
await Haptics.vibrate(HapticType.soft);
await Haptics.vibrate(HapticType.selection);
73
likes
0
points
6.65k
downloads

Publisher

verified publisherachim.io

Weekly Downloads

A Flutter plugin for haptic feedback. It uses the standard iOS haptics, and analog haptics on Android.

Repository (GitHub)
View/report issues

Topics

#haptic #feedback #haptics #vibration #plugin

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on haptic_feedback