Flutter disable touch on the entire screen
You can wrap your widget in AbsorbPointer
and it won't receive touches. To enable the touch again, you can set absorbing: false
AbsorbPointer(
child: YourWidget(...),
);
Two way to do :
- AbsorbPointer
- IgnorePointer
Check difference with example here :
- https://programmer.help/blogs/the-difference-between-flutter-absorbpointer-and-ignorepointer.html
- Flutter AbsorbPointer vs IgnorePointer difference