haptic_feedback 0.0.2 copy "haptic_feedback: ^0.0.2" to clipboard
haptic_feedback: ^0.0.2 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 iOS and Android. The plugin is using standard iOS haptics, and analog haptics on Android.

Getting Started #

1. Add the dependency #

flutter pub add haptic_feedback

2. Use the plugin #

const _haptics = Haptics();

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

#haptics #haptic #feedback #vibration #plugin

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on haptic_feedback