Error: Not found: 'dart:html' import 'dart:html'; ^ /C:/src/flutter/packages/flutter/lib/src/foundation/_platform_web.dart:5:8: Error: Not found: 'dart:html' code example
Example: 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