I would like to have text (maybe a bullet, maybe something else) above a left-right arrow, I would also like that text to be centred. I would also like the arrow to grow with the text.
MWE:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
$a \xleftrightarrow{x} b$
\end{document}
I tried this answer but it produces results similar to the above.

mathtools?! – Sigur Apr 14 '20 at 11:55