"pointer-events: none"(css) in flutter?

953

Wrap your widgets in an IgnorePointer widget:

IgnorePointer(
  ignoring: true,
  child: RaisedButton(
    onPressed: () {
      print('pressed');
    },
    child: Text('Press me'),
  ),
);
Share:
953
Миша Ландау
Author by

Миша Ландау

Updated on December 06, 2022

Comments

  • Миша Ландау
    Миша Ландау over 1 year

    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.