pulsar_haptics
0.1.1, released 3 months ago by swmansion.com
Rich haptic feedback and vibration patterns for Flutter on iOS and Android.
What it does
Provides 150+ built-in haptic presets, a pattern composer for custom sequences, and a realtime composer for gesture-driven feedback. It bridges a single Dart API to native CoreHaptics on iOS and the platform vibrator on Android.
AI-written summary of version 0.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to add expressive haptic feedback or vibration patterns to your app.
- You need realtime control over haptic amplitude and frequency for sliders or gestures.
- You want cross-platform haptics with iOS and Android platform-specific adaptations.
Skip it when
- You only need basic, default system haptics already covered by standard Flutter services.
- Your target devices lack vibration motors entirely and audio simulation is not enough.
Strengths
- Over 150 expressive built-in presets and system feedback types.
- Pattern and realtime composers for custom haptic sequences.
- Optional audio simulation to support devices with weaker motors.
Weaknesses
- Requires manual Android permission setup.
- Platform capabilities vary depending on device hardware support.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
On Android, declare the VIBRATE permission in your AndroidManifest.xml.
import 'package:pulsar_haptics/pulsar.dart';
final pulsar = Pulsar();
// Built-in expressive preset
await pulsar.getPresets().hammer();Alternatives
Packages that do the same job and could replace pulsar_haptics.
- flutter_vibrate
A Flutter plugin to trigger haptic feedback and vibrations on iOS and Android.
71Compare - gaimon
A Flutter plugin to support haptic feedback with custom patterns.
83Compare - haptic_feedback
A plugin for consistent haptic feedback patterns across iOS and Android.
91Compare - haptic_kit
Haptic feedback, vibration and animated haptic widgets for Flutter on Android and iOS.
80Compare
Works with
Packages commonly used together with pulsar_haptics: ones it builds on, ones built on it, and its own family.