I am trying to build a Flutter application for Android that vibrates the phone both
- for sufficiently long and sufficiently forcefully that even when the user's phone is in their pocket, the vibration is noticeable
- in a specific pattern which the user can identify (like Morse code)
I have found ways of producing haptic feedback, such as HapticFeedback.vibrate
, HapticFeedback.lightImpact
; however, none of these allow me to control the length of the vibration.
Is there any way in which I can make the phone vibrate for a specified length of time (e.g. 250ms)?