03 - AbsorbPointer |

Veröffentlicht am: 08 November 2023
auf dem Kanal: TECHIE BLOSSOM
245
7

#shorts #flutter #absorbpointer #widgets

A widget that absorbs pointers during hit testing.

When you wrap a widget with AbsorbPointer, you can avoid any interactions on the widget and it’s subtree like tapping or anything else.

In the example, I have TechieBlossom Logo. When I tap on this, the color of the logo will change.

Wrapping this with AbsorbPointer and setting absorbing as true, will not change it’s color. Because it will not pass the tap event to the Logo.

At runtime, you can choose to set absorbing as false. When absorbing is false, the logo can be clicked again.

Nominate as a Github Star: https://bit.ly/3dLXFWJ (@TechieBlossom)
Support Us in any of the below ways:
💜   / techieblossom  
💜 https://www.buymeacoffee.com/AGd0Xngci

Contributions:
👨🏻‍💻   / prateeksharma  
👨🏻‍💻 https://www.github.com/TechieBlossom

Feel free to connect with me:
🤝   / sharmaprateek7  
🤝 https://www.topmate.io/prateeksharma


Auf dieser Seite können Sie das Online-Video 03 - AbsorbPointer | mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer TECHIE BLOSSOM 08 November 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 245 Mal angesehen und es wurde von 7 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!