haptic_feedback 0.2.0 haptic_feedback: ^0.2.0 copied to clipboard
A Flutter plugin for haptic feedback. It uses the standard iOS haptics, and analog haptics on Android.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add haptic_feedback
With Flutter:
$ flutter pub add haptic_feedback
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
haptic_feedback: ^0.2.0
Alternatively, your editor might support dart pub get
or 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';