DEV Community

Cover image for [Solved] type ‘List‘ is not a subtype of type ‘List‘ in Flutter - fluttercorner.com
FlutterCorner
FlutterCorner

Posted on

[Solved] type ‘List‘ is not a subtype of type ‘List‘ in Flutter - fluttercorner.com

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()
Enter fullscreen mode Exit fullscreen mode

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.
Enter fullscreen mode Exit fullscreen mode

Solutions

Here is All Possible Solution added please visit [Solved] type ‘List‘ is not a subtype of type ‘List‘ in Flutter

Top comments (0)