monster555 / hold_to_confirm_button

This package provides a Hold-to-Confirm button widget for Flutter apps.
https://github.com/monster555/hold_to_confirm_button
MIT License
13 stars 4 forks source link

Heptic feedback not working #4

Open TOMSLAUS opened 2 weeks ago

TOMSLAUS commented 2 weeks ago

My widget looks like this

HoldToConfirmButton( borderRadius: BorderRadius.circular(15.sp), contentPadding: EdgeInsets.symmetric( vertical: 15.sp, horizontal: 25.sp), onProgressCompleted: () { resignFromEvent(snapshot .data!.participation![index].teamMemberDto!.id!); }, backgroundColor: Constants.primaryColor, child: const Icon( FontAwesomeIcons.trash, color: Colors.white, ), ) I added

in main/AndroidManifest.xml but its still not working, am i missing something?

monster555 commented 2 weeks ago

Hey @TOMSLAUS, could you provide more details about the issue you're experiencing? I tried your snippet and it seemed to work fine on my end without any errors.

TOMSLAUS commented 2 weeks ago

Well actually im not sure what kind of info I can give you other than this. If you have something specific in mind please let me know.

monster555 commented 2 weeks ago

Could you share the specific Android device and OS version you're using? I came across an open issue in the Flutter repo regarding HapticFeedback not working on some Android devices. This might be related to what you're experiencing.

Keep me posted :)

TOMSLAUS commented 2 weeks ago

It's s23 ultra One ui 6.1 Android 14

monster555 commented 1 week ago

Thanks for sharing your device details. Since I don't own a Samsung device, I can't test it directly. Your device falls into the affected category mentioned in this issue. If you find a solution, feel free to submit a PR! :)