Estou fazendo o curso Flutter com WebAPI: integrando sua aplicação. Ao chegar nessa aula - 07 Utilizando serviços no Flutter - faço os procedimentos indicados e o código que o instrutor ensina.
Mas tenho esse erro como resultado:
[Running] dart "d:\Desktop\CURSOS\ALURA\Curso Flutter\Curso Flutter WebAPI\flutter_webapi_first_course-aula02\lib\main.dart" /C:/Users/profl/AppData/Local/Pub/Cache/hosted/pub.dev/google_fonts-3.0.1/lib/google_fonts.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' as ui; ^ Context: The unavailable library 'dart:ui' is imported through these packages:
package:flutter_webapi_first_course => package:flutter => dart:ui
...
Detailed import paths for (some of) the these imports:
package:flutter_webapi_first_course/main.dart => package:flutter/material.dart => package:flutter/src/material/about.dart => package:flutter/foundation.dart => package:flutter/src/foundation/assertions.dart => package:flutter/src/foundation/diagnostics.dart => dart:ui
package:flutter_webapi_first_course/main.dart => package:flutter/material.dart => package:flutter/src/material/about.dart => package:flutter/foundation.dart => package:flutter/src/foundation/assertions.dart => package:flutter/src/foundation/diagnostics.dart => package:flutter/src/foundation/debug.dart => dart:ui
package:flutter_webapi_first_course/main.dart => package:flutter/material.dart => package:flutter/src/material/about.dart => package:flutter/foundation.dart => package:flutter/src/foundation/binding.dart => dart:ui
package:flutter_webapi_first_course/main.dart => package:flutter/material.dart => package:flutter/src/material/about.dart => package:flutter/foundation.dart => package:flutter/src/foundation/binding.dart => package:flutter/src/foundation/assertions.dart => package:flutter/src/foundation/diagnostics.dart => dart:ui
package:flutter_webapi_first_course/main.dart => package:flutter/material.dart => package:flutter/src/material/about.dart => package:flutter/foundation.dart => package:flutter/src/foundation/binding.dart => package:flutter/src/foundation/assertions.dart => package:flutter/src/foundation/diagnostics.dart => package:flutter/src/foundation/debug.dart => dart:ui
package:flutter_webapi_first_course/main.dart => package:flutter/material.dart => package:flutter/src/material/about.dart =>
package:flutter/src/foundation/memory_allocations.dart => package:flutter/src/foundation/diagnostics.dart => package:flutter/src/foundation/debug.dart => dart:ui package:flutter_webapi_first_course/main.dart => package:flutter/material.dart => package:flutter/src/material/about.dart => package:flutter/foundation.dart => package:flutter/src/foundation/debug.dart => dart:ui package:flutter_webapi_first_course/main.dart => package:flutter/material.dart => package:flutter/src/material/about.dart => package:flutter/foundation.dart => package:flutter/src/foundation/diagnostics.dart => dart:ui package:flutter_webapi_first_course/main.dart => package:flutter/material.dart => package:flutter/src/material/about.dart => package:flutter/foundation.dart => package:flutter/src/foundation/diagnostics.dart => package:flutter/src/foundation/debug.dart => dart:ui package:flutter_webapi_first_course/main.dart => package:flutter/material.dart => package:flutter/src/material/about.dart => package:flutter/foundation.dart => package:flutter/src/foundation/key.dart => package:flutter/src/foundation/diagnostics.dart => dart:ui package:flutter_webapi_first_course/main.dart => package:flutter/material.dart => package:flutter/src/material/about.dart => package:flutter/foundation.dart => package:flutter/src/foundation/key.dart => package:flutter/src/foundation/diagnostics.dart => package:flutter/src/foundation/debug.dart => dart:ui ...
/C:/flutter/packages/flutter/lib/src/material/animated_icons.dart:9:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' as ui show Canvas, Paint, Path, lerpDouble; ^ /C:/flutter/packages/flutter/lib/src/material/app.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' as ui; ^
[Done] exited with code=254 in 17.772 seconds
*****apaguei uma parte do erro do meio onde ele repete várias vezes a mesma coisa para não ultrapassar o limite de caracteres.
Já reinstalei várias vezes o VScode, as extensões, as versões do dart e do flutter. Mas não consigo resolver.
Alguém poderia me ajudar?