'How to show options at screen like youtube player does

I'm building a screen and flutter where the user will visualize some data and when user user touche the screen I want to show up some options just like youtube app's player does.

For example, user is using the app in landscape orientation: User using the app in landscape orientation

When it touches the screen I want to show some options just like that:

Now the user can see what it is able to do

What are the options to achieve this behavior in my flutter app?



Solution 1:[1]

You can wrap the whole thing with GestureDetector

GestureDetector(
          behavior: HitTestBehavior.opaque,
          onTap: () => {// show the controls},
          child: DataVisualizer(),
),

Be careful that using this method will also trigger the click or press method of the GestureDetector if they are tappable.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ravel Tan ???