title: How do you display a bunch of the same widget in Flutter?
body: <p>I have created a <code>GameBoard</code> widget that I want to populate with 16 <code>GameTile</code> widgets that I have also created. For the purpose of the game the <code>GameTile</code> widgets are using the <code>Positioned</code> widget. How do I generate 16 tiles without having to type out each one?</p>
  
  <p>Here is my <code>GameBoard</code> widget code:</p>
  
  <pre><code>return Container(
    width: _myScreenWidth * 0.80,
    height: _myScreenWidth * 0.80,
    child: Stack(
      children: [
        List.generate(16, (index) {
          return GameTile(value: tileValue[index], color: tileColor[index], x: tileXCoordinate[index], y: tileYCoordinate[index]);
        }),
      ],
    ),
  );
  </code></pre>
  
  <p>Here is my <code>GameTile</code> code:</p>
  
  <pre><code>return Positioned(
    left: x,
    bottom: y,
    child: PhysicalModel(
      borderRadius: BorderRadius.circular(10.0),
      color: color,
      child: Container(
        width: _tileWidth,
        height: _tileHeight,
        child: Center(
          child: Text(
            value.toString(),
            textAlign: TextAlign.center,
            style: new TextStyle(
              fontSize: _myScreenWidth * 0.07,
              color: backgroundColor,
              fontWeight: FontWeight.bold,
            ),
          ),
        ),
      ),
    ),
  );
  </code></pre>
  
  <p>Any help is much appreciated.</p>