Error: Not found: 'dart:html' lib/homescreen.dart:1 import 'dart:html';
CodePudding user response:
- This error occurs when we try to run the project for Android or IOS and not for web.
- There might be imports of dart:html in some files of your project. Remove those imports from all the files and run the app again to solve this problem.
CodePudding user response:
It seems like you have tried to import Platform
or some other thing from auto suggestion and you ended up importing 'dart:html'
header. kindly remove the header and if you want to use Platform
then you can import 'dart:io'
.
Let me know the update.
Thank you.