Skip to content

Upgrade haptic feedback#705

Open
nohli wants to merge 3 commits intomeditohq:developfrom
nohli:upgrade-haptic-feedback
Open

Upgrade haptic feedback#705
nohli wants to merge 3 commits intomeditohq:developfrom
nohli:upgrade-haptic-feedback

Conversation

@nohli
Copy link

@nohli nohli commented Dec 1, 2025

I saw that this is a popular app using my package haptic_feedback.

Recently I've made some substantial improvements which will come with this PR:

  • Android 13+ users who have disabled touch haptics in system settings didn't get haptics from the app. This change sets the usage type to media (before it was unknown, which defaults to touch). If vibrations are indeed supposed to be disabled when the user opts out from touch haptics, we can remove the usage argument, or set it to touch.

  • On Android 11+ the plugin can now use HD vibrations which feel much better and smoother

  • Android 7.* devices now vibrate with the correct pattern

https://pub.dev/packages/haptic_feedback/changelog

Copilot AI review requested due to automatic review settings December 20, 2025 19:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the haptic_feedback package to leverage recent improvements including HD vibrations on Android 11+ and better handling of system haptic settings.

  • Updated haptic_feedback dependency from version 0.5.1+1 to 0.6.4+2
  • Added usage: HapticsUsage.media parameter to the haptic vibration call to respect user preferences for touch haptics vs. media haptics

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pubspec.yaml Bumps the haptic_feedback package version to 0.6.4+2 to access new features and improvements
lib/views/end_screen/end_screen_view.dart Adds the usage parameter set to media for the success haptic feedback on the end screen

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants