title: Flutter: How to add an extra ListTile to ListView manually
body: <p>What I want to do is to add an extra <code>LisTile</code> to the last of <code>ListView</code> but I still don't figure it out.
  My current code is like this.</p>
  
  <pre><code>child: ListView.builder(
          itemBuilder: (context, index) {
            if (index == 0) {
              // Add an extra item to the start
              return ListTile(
               ...
              );
            }
            index -= 1;
            final item = _items[index];
  
            // I want to an extra item here as well
            if (index == _items.length) {
                return ListTile();
            }
  
            return ListTile(
                ...
            );
  
  
          },
          itemCount: _items.length + 2,
  </code></pre>
  
  <p>I've already tried the way above, but it doesn't work. There is an error. </p>
  
  <blockquote>
    <p>Invalid value: not in range 0..4, inclusive 5</p>
  </blockquote>
  
  <p>When I changed <code>itemCount</code> to <code>_items.length + 1</code>, it doesn't show the extra <code>ListTile</code> I want to add to the end.</p>