When I start a debugging session (pressing F5) I receive the following messages:
dart:ui:1: Error: Not found: dart:ui.
Exited (sigterm)
The
In edit configuration, run it as flutter project,which has a flutter icon besides it.
Check your denpendency tree. Delete all flutter related lib like widgets/material/cupertino.
In short, you are running a file as dart file, but you have imported flutter dependencies like widgets/material at the same time. Either run it as flutter ,or get rid of flutter dependency and run pure dart.