vibrate flutter code example
Example 1: how to vibrate phone flutter
Hey, Lemme Help You
First add this dependency in your pubspec.yaml
vibration: ^1.7.3
then import the library:
import 'package:vibration/vibration.dart';
then use this is code in an async function:
if (await Vibration.hasVibrator()) {
Vibration.vibrate();
}
Example 2: how to vibrate phone flutter
import 'package:vibration/vibration.dart';