Baixei o código inicial do curso "Flutter com web API: integrando sua app mobile" mas ele apresenta o erro abaixo, após clicar no botão "Contacts":
════════ Exception caught by widgets library ═══════════════
The following NoSuchMethodError was thrown building FutureBuilder<List>(dirty, state: _FutureBuilderState<List>#05f4b): The getter 'length' was called on null. Receiver: null Tried calling: length
The relevant error-causing widget was: FutureBuilder<List> file:///C:/Users/Silvia/Documents/03_curso_flutter_web_api/bytebank/lib/screens/contacts_list.dart:16:13 When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 ContactsList.build. (package:bytebank/screens/contacts_list.dart:44:37)
#2 _FutureBuilderState.build (package:flutter/src/widgets/async.dart:732:55)
#3 StatefulElement.build (package:flutter/src/widgets/framework.dart:4619:28)
#4 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4502:15) ...