On Android, we can access the pressure of an event using getPressure, on iOS one can use the force property. But can we access these event properties also when using dart/flutter? If not, is there a work-around possible?
On Android, we can access the pressure of an event using getPressure, on iOS one can use the force property. But can we access these event properties also when using dart/flutter? If not, is there a work-around possible?
I think you are looking for "ForcePressGestureRecognizer" using GestureDetector Widget, check below links:
https://api.flutter.dev/flutter/widgets/GestureDetector-class.html#onForcePressStart
https://api.flutter.dev/flutter/gestures/ForcePressGestureRecognizer-class.html
In flutter you can use ForcePressGestureRecognizer
The interpolation function should give you the raw device pressure.