Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 860
Миша Ландау Avatar asked Jul 31 '18 21:07

Миша Ландау


1 Answers

Wrap your widgets in an IgnorePointer widget:

IgnorePointer(
  ignoring: true,
  child: RaisedButton(
    onPressed: () {
      print('pressed');
    },
    child: Text('Press me'),
  ),
);
like image 56
boformer Avatar answered Nov 04 '22 21:11

boformer