how to solve Execution failed for task ':app:compileFlutterBuildDebug'
Try the following:
Go to pubspec.yaml file in android studio, and try doing "packages get",
and then build the project again.
Even if this doesn't work, try removing the import dart:html; from the code and build again. Hope this resolves!