Hossein
Hossein

Reputation: 847

Ignoring child touch, and receive them on parent widget

I have a tree as below:

GestureDetector
  Container
    Column
      Row
        Expanded
          LinearProgressIndicator

and GestureDetector doesn't recognize LinearProgressIndicator taps, i also wrapped LinearProgressIndicator with IgnorePointer but did not make a difference.

What's wrong with LinearProgressIndicator?

Upvotes: 1

Views: 375

Answers (1)

Hossein
Hossein

Reputation: 847

It just fixed by setting behavior attribute of GestureDetector by HitTestBehavior.opaque.

Upvotes: 2

Related Questions