flutter_vibrate_ohos
A Flutter plugin to vibrate the device.
Usage
import 'package:flutter_vibrate_ohos/flutter_vibrate_ohos.dart';
yaml
dependencies:
flutter_vibrate: 1.3.0
flutter_vibrate_ohos: 1.0.0
Haptic Feedback
// Choose from any of these available methods
enum FeedbackType {
success,
error,
warning,
selection,
impact,
heavy,
medium,
light
}
var _type = FeedbackType.impact;
Vibrate.feedback(_type);