title: Dart/Flutter: not working function http.get
body: <p>I am very new to Flutter, and stuck at the following problem:</p>
  <p>My function to get a list of books using googleapis:</p>
  <pre><code>    Future cercaLibri(String ricerca) async {
          final String dominio = 'www.googleapis.com';
          final String percorso = '/books/v1/volumes';
          Map&lt;String, dynamic&gt; parametri = {'q': ricerca};
      
          final Uri url = Uri.https(dominio, percorso, parametri);
          print('hello');
          http.get(url).then((res) {
            final resJson = json.decode(res.body);
            final libriMap = resJson['items'];
      
            libri = libriMap.map&lt;Libro&gt;((value) =&gt; Libro.fromMap(value)).toList();
      
            setState(() {
              libri = libri;
      
              risultato = res.body;
            });
          });
          setState(() {
            risultato = &quot;Caricamento in corso&quot;;
          });
        }
  </code></pre>
  <p><a href="https://stackblitz.com/edit/typescript-lhtyud?file=libroScreen.dart" rel="nofollow noreferrer">for all files see stackblitz</a></p>
  <p>In <code>pubspec.yaml</code> I have</p>
  <pre><code>http: ^0.13.4
  </code></pre>
  <p>It seems to me that the get method is not being called, or maybe the call is pending</p>
  <p>Sorry the code isn't in English</p>