Estou fazendo esse curso. 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-aula01\lib\tempCodeRunnerFile.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:google_fonts => dart:ui
package:flutter_webapi_first_course => package:google_fonts => package:flutter => dart:ui
...
Detailed import paths for (some of) the these imports:
package:flutter_webapi_first_course/tempCodeRunnerFile.dart => package:google_fonts/google_fonts.dart => dart:ui
package:flutter_webapi_first_course/tempCodeRunnerFile.dart => package:google_fonts/google_fonts.dart => package:flutter/material.dart =>
package:flutter_webapi_first_course/tempCodeRunnerFile.dart => package:google_fonts/google_fonts.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
...
/C:/Users/profl/AppData/Local/Pub/Cache/hosted/pub.dev/google_fonts-3.0.1/lib/src/google_fonts_base.dart:6:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui'; ^ /C:/Users/profl/AppData/Local/Pub/Cache/hosted/pub.dev/google_fonts-3.0.1/lib/src/google_fonts_variant.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. import '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; ^ /C:/flutter/packages/flutter/lib/src/material/app_bar_theme.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' show lerpDouble; ^ /C:/flutter/packages/flutter/lib/src/material/arc.dart:6:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' show lerpDouble; ^ /C:/flutter/packages/flutter/lib/src/material/badge_theme.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' show lerpDouble; ^ /C:/flutter/packages/flutter/lib/src/material/banner_theme.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' show lerpDouble; ^
[Done] exited with code=254 in 15.462 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?