pulsar_haptics 0.0.1
pulsar_haptics: ^0.0.1 copied to clipboard
Rich haptic feedback for Flutter with presets, pattern playback, and realtime control.
pulsar_haptics #
Pulsar is a Flutter plugin for rich haptic feedback on Android and iOS. It exposes built-in presets, a pattern composer, and a realtime composer through a Dart-friendly API.
Features #
- 200+ built-in haptic presets
- System impact, notification, and selection haptics
- Pattern-based custom haptic playback
- Realtime haptic control for gestures and sliders
- Shared Flutter API for Android and iOS
Installation #
Note: This package is published as
pulsar_haptics, notpulsar. The shorterpulsarname on pub.dev was reserved by an unrelated author before this project was published and is not maintained by Software Mansion. Always depend onpulsar_haptics.
Latest available version: 0.0.1
dependencies:
pulsar_haptics: ^0.0.1
Usage #
import 'package:pulsar_haptics/pulsar.dart';
final pulsar = Pulsar();
await pulsar.getPresets().systemImpactMedium();
await pulsar.getPresets().systemNotificationSuccess();
await pulsar.getRealtimeComposer().set(0.8, 0.5);
await pulsar.getRealtimeComposer().stop();
Documentation #
- Repository: https://github.com/software-mansion/pulsar
- Docs: https://docs.swmansion.com/pulsar
Publishing #
This package is configured to publish from GitHub Actions when a tag matching pulsar_haptics-v{{version}} is pushed. Before the workflow can publish successfully:
- In
pub.dev/packages/pulsar_haptics/admin, enable automated publishing from GitHub Actions forsoftware-mansion/pulsar. - Set the tag pattern to
pulsar_haptics-v{{version}}. - If this repository has never published the package before, publish the first version manually on pub.dev.
After that, bump version in pubspec.yaml, push a matching tag such as pulsar_haptics-v0.1.1, and GitHub Actions will publish from flutter/pulsar.