Home > Blockchain >  Large Gesturedetectors are blocking my SingleChildScrollView from scrolling
Large Gesturedetectors are blocking my SingleChildScrollView from scrolling

Time:10-09

I have large clickable cards in a list, they take up 90% of the width.

A SingleChildScrollView is wrapping a listview that builds the cards.

Problem is, due to the gesturedetectors being large, it's difficult to scroll the list. Scrolling on the cards doesn't do anything since it's own onTap is conflicting with it.

Is there any way to solve this without disabling the onTap for GestureDetectors?

CodePudding user response:

Try to add the behavior to your GestureDetector:

behavior: HitTestBehavior.translucent,
  • Related