title: Is it possible in Flutter to iterate a row of widgets with properties with a for loop?
body: <p>I am trying to make a dynamic widget that produces containers with editable properties (color, title, etc) based on an inputted number into a function or for loop. I.e. I type a "4" and I get a row of four containers that I can edit their colors, titles, and whatever other property I specify. </p>
  
  <p>Container I am trying to produce based on the number typed into the function or for loop:</p>
  
  <pre><code>class RectButton extends StatelessWidget {
    RectButton({this.buttonChild, this.bgColor, this.onPress});
  
    final Widget buttonChild;
    final Color bgColor;
    final Function onPress;
  
    @override
    Widget build(BuildContext context) {
      return GestureDetector(
        onTap: onPress,
        child: Container(
          constraints: BoxConstraints.expand(width: 100, height: 50),
          child: Center(child: buttonChild),
          decoration: BoxDecoration(
              color: bgColor,
              shape: BoxShape.rectangle,
              border: Border.all(width: 1, color: Colors.white)),
          padding: EdgeInsets.fromLTRB(12, 12, 12, 12),
        ),
      );
    }
  }
  </code></pre>