0

Here is a widgets tree:

CustomScrollView(Clip.none)
  SliverList
    Column
      HourItem
        SizedBox
          Stack
            Positioned(top: 30)

The result is: Flutter overflow screenshot

I can handle tap area where blue arrow is point on, and can't where red arrow.

If it would be web I would use z-index property, but how can I do the same in Flutter?

Anton Starcev
  • 1,138
  • 12
  • 9

1 Answers1

0

use GestureDetector

Positioned(top: 30,child: GestureDetector(
                      child:  SomeWidget(),
                      onTap: () {
                        // some action 
                      },
                    ),),
Moaid ALRazhy
  • 1,604
  • 1
  • 3
  • 13