title: How do I center text vertically and horizontally in Flutter?
body: <p>I'd like to know how to center the contents of a Text widget vertically and horizontally in Flutter.
  I only know how to center the widget itself using <code>Center(child: Text(&quot;test&quot;))</code> but not the content itself. By default, it's aligned to the left. 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>