I have a GestureDetector in a custom stateless view. when onTap triggered I show a snack bar that displays some info. When the user makes multiple clic
GestureDetector
onTap
Wrap it in an AbsorbPointer
AbsorbPointer
var shouldAbsorb = true; AbsorbPointer( absorbing: shouldAbsorb, child: GestureDetector( onTap: () { Navigator.of(context).pop(); }, child: Container( color: Colors.red, ), ), )