title: Error:- type 'List<dynamic>' is not a subtype of type 'Future<dynamic>'
body: <p>How can I get away from this error or what else I can call instead of List dynamic or Future dynamic or how can I convert List into Future?I just want to display this text from firestore.<a href="https://i.stack.imgur.com/CgpAY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CgpAY.png" alt="enter image description here" /></a>
  Error:-</p>
  <pre><code>     Unhandled Exception: type 'List&lt;dynamic&gt;' is not a subtype of type 'Future&lt;dynamic&gt;'
  </code></pre>
  <p>Getting data this way and commented line which takes me to error:-</p>
  <pre><code>    class EditInfo extends StatefulWidget{
      @override
     EditInfoState createState () =&gt; EditInfoState();
     }
  
  
    class EditInfoState extends State&lt;EditInfo&gt;
   with SingleTickerProviderStateMixin{
   final CollectionReference _reference =   FirebaseFirestore.instance.collection(&quot;users&quot;);
   final FirebaseAuth auth = FirebaseAuth.instance;
   CreateAccountData accountData;
  
   Future myInterest;
  
  
      
      getalldata() async {
      Future&lt;CreateAccountData&gt; getUser() async {
      final User user = auth.currentUser;
      return _reference.doc(user.uid).get().then((m) =&gt;  CreateAccountData.fromDocument(m));
      }
      getUser().then((value)async{
      accountData= value;
      DocumentSnapshot doc = await usercollection.doc(auth.currentUser.uid).get();
     myInterest = doc.data()['hobbies'];///Error takes me to,myInterest
  
       });
   }
  </code></pre>
  <p>Displaying it in grid view:-</p>
  <pre><code>       child: FutureBuilder(
                        future: myInterest,
                        builder: (BuildContext context,AsyncSnapshot snapshot){
                          if(!snapshot.hasData){
                            return Center(
                              child: CircularProgressIndicator(),
                            );
                          } if(snapshot.data.docs.isEmpty){
                            return Align(
                              alignment: FractionalOffset.centerLeft,
                              child: Text(&quot;Add what you love to do.....&quot;,textAlign: TextAlign.left,style: TextStyle(fontSize: 17),),
                            );
                          }return GridView.builder(
                              physics: BouncingScrollPhysics(),
                              scrollDirection: Axis.horizontal,
                              shrinkWrap: true,
                              itemCount: snapshot.data.docs.length,
                              gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2, childAspectRatio: 5, crossAxisSpacing: 5,),
                              itemBuilder: (BuildContext context, int index){
                               // DocumentSnapshot interestList = snapshot.data.docs[index]['hobbies'];
                                return Padding(
                                    padding: EdgeInsets.fromLTRB(5, 5, 5, 5),
                                  child: Text(snapshot.data.documents[index]['hobbies']),
                                );
                              }
                          );
  
                        },
                      ),
  </code></pre>