benjamindean / flutter_vibration

Handle vibration on iOS and Android in Flutter apps
217 stars 67 forks source link

Impossible to do a small vibration #88

Closed martinpelli closed 11 months ago

martinpelli commented 1 year ago

There is no way to do a small vibration, like when spinning a wheel to change time, some apps have a very very small vibration. I tried to use this package to achieve that, but if I call Vibration.vibrate(duration: 20, amplitude: 50) the vibration is huge and awful.

Hadi-Osman commented 11 months ago

When I do Vibration.vibrate(duration: 15, amplitude: 64) I get a short and precise vibration, I am using a Samsung Galaxy S10+

martinpelli commented 11 months ago

When I do Vibration.vibrate(duration: 15, amplitude: 64) I get a short and precise vibration, I am using a Samsung Galaxy S10+

Nevermind, I found that this is not for what I Wanted, for anyone looking for this, flutter has Haptics, so you should search for Haptics and not vibration

xihuny commented 11 months ago

@martinpelli but haptics only have 4 options right? what if I want a different duration?