title: Flutter - Loops for ListTile
body: <p>I am not sure how to generate multiple ListTiles by means of loops, such as <code>for()</code>.</p>
  
  <p>I do not know how Flutter works for rendering widgets, since in Angular 2 just insert the <code>*ngFor</code> directives in the layout (html).</p>
  
  <p>I could not find such a subject in the Flutter documentation.</p>
  
  <p><strong>main.dart</strong></p>
  
  <pre><code>import 'package:flutter/material.dart';
  
  void main() {
    runApp(new MyApp());
  }
  
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return new MaterialApp(
        title: "Myapp",
        home: new HomePage(),
      );
    }
  }
  
  class HomePage extends StatelessWidget {
  
    @override
    Widget build(BuildContext context) =&gt; new Scaffold(
      appBar: new AppBar(
        backgroundColor: new Color(0xFF26C6DA),
      ),
      body: new ListView (
        children: &lt;Widget&gt;[
          new Card(
            child: new Column(
              mainAxisSize: MainAxisSize.min,
              children: &lt;Widget&gt;[
                const ListTile(
                  leading: const Icon(Icons.album),
                  title: const Text('The Enchanted Nightingale'),
                  subtitle: const Text('Music by Julie Gable. Lyrics by Sidney Stein.'),
                ),
              ],
            ),
          ),
        ],
      )    
    );
  }
  </code></pre>