Flutter for loop to generate list of widgets : <p>I have code like this but I want it to iterate over an integer array to display a dynamic amount of children:</p>

<pre><code>return Container(
  child: Column(
    children: &lt;Widget&gt;[
      Center(
        child: Text(text[0].toString(),
            textAlign: TextAlign.center),
      ),
      Center(
        child: Text(text[1].toString(),
            textAlign: TextAlign.center),
      ),
    ],
  ),
)
</code></pre>

<p>Where the <code>text</code> variable is a list of integers converter to string here. I tried adding a function to iterate through the array and display the 'children' but was getting a type error. Not sure how to do it since I'm new to Dart and Flutter.</p>
