haptic_feedback 0.5.1+1 haptic_feedback: ^0.5.1+1 copied to clipboard
A Flutter plugin for haptic feedback. While it utilizes standard iOS haptics, it aims to emulate these same haptic patterns on Android for a consistent experience across platforms.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add haptic_feedback
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
haptic_feedback: ^0.5.1+1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:haptic_feedback/haptic_feedback.dart';