Reputation: 1
Error: Not found: 'dart:html' lib/homescreen.dart:1 import 'dart:html';
Upvotes: 0
Views: 2056
Reputation: 11
The same error occurs when I try to import this line.
import 'package:dio/browser.dart';
after having removed this, it works fine again
Upvotes: 0
Reputation: 156
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.
Upvotes: 0
Reputation: 1422
Upvotes: 1