This is my first time writing a flutter app.
I write a widget which listening to tap event.
Listener(
onPointerUp: (e) {
// A function here
},
child: child,
);
But it always has a delay after i tap the widget.
I don’t want a delay on button. I have tried InkWell
, GestureDetector
and Listener
. All of these doesn’t work as i expected.
I searched the problem on google, found that there would have delay on button when it have both onTap
and onDoubleTap
event. But i never write onDoubleTap
event.
My code is in https://github.com/yuanzui-cf/grassh/blob/main/lib/src/component/window_button.dart . I want to know why it has a delay and how to resolve it.