Answers for "Error: Not found: 'dart:html' if (dart.library.html) import 'dart:html' as HTML;"

0

error: not found: 'dart:html' import 'dart:html';

Change import 'dart:html'; to import 'package:http/http.dart' as http;

and then change pubspec.yaml files dependencies to

dependencies:
flutter:
sdk: flutter
http:

and click pub get
Posted by: Guest on March-19-2021

Code answers related to "Error: Not found: 'dart:html' if (dart.library.html) import 'dart:html' as HTML;"

Browse Popular Code Answers by Language