Hello Guys, How are you all ? Hope you all are fine. Today I have faced type ‘List’ is not a subtype of type ‘List’ this error where I Use in my Flutter Firebase Project.
I have Used Firestore Example in My Flutter Project. When I run my flutter app. But I get this error in my Console.
I am using This Below Code Where I Got Error.
          children: snapshot.data.documents.map((document) {
            return new ListTile(
              title: new Text(document['name']),
              subtitle: new Text("Class"),
            );
          }).toList()
I get this below error
type 'List<dynamic>' is not a subtype of type 'List<Widget>'
Here I am Come with all Possible Solution. So let’s Start this tutorial without wasting your Time. Let’s start this article.
Solutions
Here is All Possible Solution added please visit [Solved] type ‘List‘ is not a subtype of type ‘List‘ in Flutter
 
![Cover image for [Solved] type ‘List‘ is not a subtype of type ‘List‘ in Flutter - fluttercorner.com](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F13l8vdqmpbvc0yu8dmsf.jpg) 
              
 
    
Top comments (0)