Listener(
onPointerUp: (event) {
LogUtil.v('++++++onPointerUp++++');
},
child: ListView.builder(
itemCount:10,
itemBuilder:(context, index) {
return GestureDetector(
onTap:() {
LogUtil.v('++++++GestureDetector++++');
},
child:Container(
height:200
)
)
}
))
When I click listview item, print ‘++++++GestureDetector++++’ ,’++++++onPointerUp++++’ also printed. How can I make ‘++++++onPointerUp++++’ not print?
2
Answers
If you don’t need the log inside the Listener, why don’t you just remove the line:
Maybe something like this is a possibility