web_haptics 0.0.1 copy "web_haptics: ^0.0.1" to clipboard
web_haptics: ^0.0.1 copied to clipboard

Platformweb

Haptic feedback for Flutter web apps. Uses the iOS Taptic Engine via the checkbox-switch trick and navigator.vibrate() as the Android/fallback path. A Dart port of the web-haptics JavaScript library b [...]

0.0.1 #

  • Initial release.
  • WebHaptics class with trigger(), cancel(), and destroy() methods.
  • Built-in haptic presets: success, warning, error, light, medium, heavy, soft, rigid, selection, nudge, buzz.
  • iOS Taptic Engine support via hidden checkbox-switch trick.
  • Android support via navigator.vibrate() with PWM intensity modulation.
  • Desktop debug mode with Web Audio API click sounds.
3
likes
150
points
137
downloads

Publisher

verified publishersouvikbiswas.com

Weekly Downloads

Haptic feedback for Flutter web apps. Uses the iOS Taptic Engine via the checkbox-switch trick and navigator.vibrate() as the Android/fallback path. A Dart port of the web-haptics JavaScript library by Lochie Axon.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

web

More

Packages that depend on web_haptics