How do I center text vertically and horizontally in Flutter? : <p>I'd like to know how to center the contents a Text widget vertically and horizontally in Flutter.
I only know how to center the widget itself using <code>Center(child: Text("test"))</code> but not the content itself, it's by default left aligned. In Android, I believe the property of a TextView that achieves this is called <code>gravity</code>.</p>

<p>Example of what I want:</p>

<p><a href="https://i.stack.imgur.com/mRIob.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mRIob.png" alt="centered text example"></a></p>
