I have Dart library error (the error in the title), when trying to run a Flutter file on VSCode, i tried everything in the old posts about the same problem, yet it still persists.
I can run flutter manually, using flutter run, but then hot reload and hot restart don't work. I need to retry debugging (and always get the same error), then again run flutter manually to see the changes i've made.
I tried flutter clean and then flutter pub get, yet it doesn't work. Still Error: Dart library 'dart:ui' is not available on this platform error persists.
I sent my code to my friend and she can debug and run it without flutter run.
Sorry if my formatting is bad, new here.