vibration_type 0.0.1 vibration_type: ^0.0.1 copied to clipboard
Vibration type IOS
This plugin allows Flutter apps for IOS to access the types of vibrations available in the operating system.
Platform Support #
Android | iOS | MacOS | Web | Linux | Windows |
---|---|---|---|---|---|
x | ✔️ | x | x | x | x |
Required: #
add to Podfile
platform :ios, '13.0'
How to use: #
import 'package:vibration_type/vibration_type_export.dart';
Impact vibration: #
enum ImpactVibrationType { soft, light, medium, heavy, rigid }
VibrationType().impactVibration(ImpactVibrationType.heavy);
Notification vibration: #
enum NotificationVibrationType { success, error, warning }
VibrationType().notificationVibration(NotificationVibrationType.warning);