title: flutter - unable to send API request with FutureBuilder
body: <p>I am trying to make an API call using FutureBuilder in flutter but it seems like the request is not sent because I do not see the response printing. here is my future builder:</p>
  
  <pre><code>FutureBuilder(
  future: authBloc.login(user, pass),
  builder: (context, AsyncSnapshot snapshotItem) {
  Map&lt;String, dynamic&gt; data = snapshotItem.data[0];
   print(data['response']);
   if (data.containsKey('id')) {
   saveId(data['id']);
   Navigator.of(context).pushReplacement(
   MaterialPageRoute(
   builder: (BuildContext context) {
   return MainPage();
   }));
   }
   if (data.containsKey("response")) {
   if (data['response'] == false) {
   showDialog(
   context: context,
   builder: (BuildContext context) {
   return AlertDialog(
   title: Text('An Error Has Occurred'),
   content: Text(
   'Please Make Sure That You Are Entering Valid UserName And Password'),
    actions: &lt;Widget&gt;[
    FlatButton(
    child: Text("OK"),
    onPressed: () =&gt;
    Navigator.of(context).pop(),
    )
     ],
      );
        });
         }
       }
      },
     );
  </code></pre>
  
  <p>the <code>authBloc.login(user, pass),</code> part is login function in another file that makes the API call and I thought it is not necessary to include that file here.</p>