title: Flutter Futurebuilder not returning anything
body: <p>I have a Futurebuilder in flutter, but it never returns anything.</p>
  
  <p>As you can see below, I have a Futurebuilder that calls a method called <code>getGamesLost</code>. If there is no data, it will show a loading indicator.</p>
  
  <pre><code>  FirestoreUserProfile firestoreUserProfile = new FirestoreUserProfile();
  
    @override
    Widget build(BuildContext context) {
      return FutureBuilder(
          future: firestoreUserProfile.getGamesLost(),
          builder: (BuildContext context, AsyncSnapshot&lt;int&gt; userProfileData) {
            if(userProfileData.hasData) {
               print(userProfileData);
            }
            else {
              return Styling.loadingIndicator;
            }
          }
      );
  </code></pre>
  
  <p>My problem is that there is never data. Below is the getGamesLost method.</p>
  
  <pre><code>  Future&lt;int&gt; getGamesLost() async {
      return await firestoreCollectionReference
          .document(FirebaseUserData.currentFirebaseUser.email)
          .snapshots().forEach((userData) {
            return userData.data[describeEnum(fieldNames.profile)][describeEnum(fieldNames.gamesLost)];
      });
    }
  </code></pre>
  
  <p>For some reason the getGamesLost that is called by the futurebuilder never finishes. I can print the value of <code>userData</code> just before the last return, which means there actually is data returning from firebase, but it is as if the method never actually returns and the futurebuilder just keeps waiting.</p>