Documentation

Trace: Haptic feedback

(flutterui)

Haptic feedback

A mobile device supports haptic feedback. If you want to use this feature, simply set a style for your button. We only have haptic feedback for buttons right now.

Style.addStyleNames(button, "f_haptic");

Possible styles are:

f_haptic - Provides vibration haptic feedback to the user for a short duration.
f_haptic_light - Provides a haptic feedback corresponding a collision impact with a light mass.
f_haptic_medium - Provides a haptic feedback corresponding a collision impact with a medium mass.
f_haptic_heavy - Provides a haptic feedback corresponding a collision impact with a heavy mass.
f_haptic_click - Provides a haptic feedback indication selection changing through discrete values.

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information