flutter GestureDetector hit area

Use GestureDetector wrapped Container, Container content was found in the empty area click onTap not catch the click event.

Solution: Add the attribute in GestureDetector inside:

behavior: HitTestBehavior.opaque

Guess you like

Origin www.cnblogs.com/qqcc1388/p/11425841.html