Flutter - Ignore pointer and absorb pointer.

 Absorb Pointer

A widget that absorbs pointers during hit testing.

When absorbing is true, this widget prevents its sub tree from receiving pointer events by terminating hit testing at itself. 

Click here to know more

It's like enable or disable field by depends on the value.


Ignore Pointer

A widget that is invisible during hit testing.

When ignoring is true, this widget (and its sub tree) is invisible to hit testing.

Click here to know more

To Ignore the whole drag, click, swipe and all types of event on entire the child classes. 


Example click here

Comments

Popular posts from this blog

Flutter Bloc - Clean Architecture

What's new in android 14?

Dependencies vs Dev Dependencies in Flutter