7

I am from the world of web development and I want to understand how to implement in the flutter "pointer-events: none". In web this property makes the element not active and does not react to the touch of the mouse and the sensor.

1 Answer 1

11

Wrap your widgets in an IgnorePointer widget:

IgnorePointer(
  ignoring: true,
  child: RaisedButton(
    onPressed: () {
      print('pressed');
    },
    child: Text('Press me'),
  ),
);
1
  • Odd to find "touch" events managed by pointer object. Fair enough.
    – bladnman
    Feb 5, 2020 at 1:50

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.