title: How to show a menu at press/finger/mouse/cursor position in flutter
body: <p>I have this piece of code which I got from <a href="https://stackoverflow.com/questions/53501448/style-clipboard-in-flutter">Style clipboard in flutter</a></p>
  
  <pre><code>showMenu(
          context: context,
          // TODO: Position dynamically based on cursor or textfield
          position: RelativeRect.fromLTRB(0.0, 600.0, 300.0, 0.0),
          items: [
            PopupMenuItem(
              child: Row(
                children: &lt;Widget&gt;[
                  // TODO: Dynamic items / handle click
                  PopupMenuItem(
                    child: Text(
                      "Paste",
                      style: Theme.of(context)
                          .textTheme
                          .body2
                          .copyWith(color: Colors.red),
                    ),
                  ),
                  PopupMenuItem(
                    child: Text("Select All"),
                  ),
                ],
              ),
            ),
          ],
        );
  </code></pre>
  
  <p>This code works great, except that the popup that is created is at a fixed position, how would I make it so that it pops up at the mouse/press/finger/cursor position or somewhere near that, kind of like when you want to copy and paste on your phone. (This dialog popup will not be used for copy and pasting)</p>