With `GestureDetector`, you can get the size and position of a tapped widget through its `RenderBox`:

```
GestureDetector(
  onTap: () {
    RenderBox renderBox = context.findRenderObject();
  }
);

```

Because a `TextSpan` is not a `Widget`, calling `context.findRenderObject()` from within a `TextSpan` can only ever give you the box of the widget enclosing `RichText`:

```
RichText(
  text: TextSpan(
    children: [
      TextSpan(
        text: 'Tap me',
        recognizer: TapGestureRecognizer()..onTap = () {
          //Gets box around RichText, not around this TextSpan
          RenderBox renderBox = context.findRenderObject();
        },
      ),
    ],
  ),
);

```

Is there another API to get the coordinates of an individual TextSpan when it is tapped?