title: How to show list of Strings in Listview in flutter
body: <p>I have list of strings.I need to show them in interface as list.</p>
  <pre><code>List&lt;String&gt; spec_list = urlremoved.split(&quot;, &quot;);
  </code></pre>
  <p>I need to just show them.but it is not working.please help met o findout the error.
  I have attached the code below</p>
  <pre><code>import 'package:cloud_firestore/cloud_firestore.dart';
  import 'package:flutter/material.dart';
  
  
  
  class ItemView extends StatefulWidget {
    final String docID123;
  
    const ItemView({ this.docID123}) ;
  
    @override
    _ItemViewState createState() =&gt; _ItemViewState();
  }
  String name123;
  class _ItemViewState extends State&lt;ItemView&gt; {
    @override
    //String docuID = Widget.documentid;
    
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: Text('Item Data'),
        ),
        body: ListView(
          children: &lt;Widget&gt;[
            Text(widget.docID123),
            getItems(),
            
          ],
        ),
      );
    }
  }
  
  
  Widget getItems(){
      return StreamBuilder(
        //1597917013710
        stream: Firestore.instance.collection('ads').document('1597917013710').snapshots(),
        builder: (context, snapshot){
          if (!snapshot.hasData) {
            //snapshot.data.toString();
            return new Text(&quot;Loading&quot;);
          }
          DocumentSnapshot dd = snapshot.data; 
  
          var userDocument = snapshot.data;
          //String myname = dd.data.toString();
          int len = dd.data.length;
          
          String jsonString = dd.data.toString();
          String start = &quot;[&quot;;
          String end = &quot;]&quot;;
          final startIndex = jsonString.indexOf(start);
          final endIndex = jsonString.indexOf(end, startIndex + start.length);
          String next = jsonString.substring(startIndex + start.length, endIndex);
          String imagelinkRemoved = jsonString.replaceAll(next, &quot;&quot;);
          String urlremoved = imagelinkRemoved.replaceAll(&quot;urls: [], &quot;, &quot;&quot;).replaceAll(&quot;{&quot;, &quot;&quot;).replaceAll(&quot;}&quot;, &quot;&quot;);
  
          List&lt;String&gt; spec_list = urlremoved.split(&quot;, &quot;);
          int speclistlen = spec_list.length;
          
          return Container(
        child: Column(
          children: &lt;Widget&gt;[
            Text(spec_list[0]),
            ListView.builder(
              itemCount: speclistlen,
              itemBuilder: (context,index){
                return Text(spec_list[index]);
              },
            )
          ],
        ),
      );
        }
      );
  }
  
  
  Future getCatagory() async {
        var firestone = Firestore.instance;
  
        QuerySnapshot alldata = await firestone.collection(&quot;catagory_names/Vehicles&quot;).getDocuments();
        for(int i=0;i&lt;alldata.documents.length;i++){
                          DocumentSnapshot snap = alldata.documents[i];
                          
                        }
  
        return  Text('12345');
  
      }
  </code></pre>