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.
haptic_feedback_pro ⥠#
A Flutter plugin for triggering rich haptic feedback on iOS and Android.
Supports all native haptic types â impact, notification, selection, and full vibration. ðŊ
ðą Platform Support #
| Android | iOS |
|---|---|
| â | â |
ð Installation #
Add to your pubspec.yaml:
dependencies:
haptic_feedback_pro: ^1.0.0
Then run:
flutter pub get
ð ïļ Usage #
import 'package:haptic_feedback_pro/haptic_feedback_pro.dart';
// Trigger any feedback type
await HapticFeedbackPro.trigger(FeedbackType.success);
await HapticFeedbackPro.trigger(FeedbackType.heavy);
await HapticFeedbackPro.trigger(FeedbackType.vibration);
ðïļ Feedback Types #
| Type | Description |
|---|---|
FeedbackType.light |
ðŠķ Light impact |
FeedbackType.medium |
ð Medium impact |
FeedbackType.heavy |
ðŠ Heavy impact |
FeedbackType.soft |
ðŦ§ Soft impact |
FeedbackType.rigid |
ðŠĻ Rigid impact |
FeedbackType.success |
â Success notification |
FeedbackType.warning |
â ïļ Warning notification |
FeedbackType.error |
â Error notification |
FeedbackType.selection |
ð Selection change |
FeedbackType.vibration |
ðģ Full device vibration |
ð Built By #
Enjoyed this package? Check out the app we built it for ð
ð License #
MIT