title: snapshot.data is null in Flutter
body: <p>My snapshot.data is null. When I print the response it is displaying the retrieved data. But still snapshot.data is null.</p>
  <pre><code>    Future _getUsers() async {
           
          var data = await http.post(&quot;http://10.0.2.2/Flutter/abreport.php&quot;, body: {
          {
            &quot;date&quot;: mydt,
           });
           var jsonData = json.decode(data.body); //edited
           print(jsonData); // the data is printing here
  
           return jsonData;
         }  
      
         }  
  
      FutureBuilder(
              future: _getUsers(),
              builder: (BuildContext context, AsyncSnapshot snapshot) {
                    debugPrint(snapshot.data);
                if (snapshot.data == null) {
                  return Container(
                    child: Center(
                  
                      child:Text(&quot;no data&quot;),
                      )
                      );
                } else {
                   //some code
               }
  
                ) 
  </code></pre>