Search code examples
flutterdarttouch

Is there a way to access to pressure of a touch event in Dart?


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?


Solution

  • In flutter you can use ForcePressGestureRecognizer

    The interpolation function should give you the raw device pressure.