Error Flutter Http Dart Does Not Exist
Target of URI doesn’t exist: ‘package:http/http.dart’ . Try Creating the file referenced by the URI, our Try using a URI for a file that dose exist. dart (uri_dose_not_exist), No quick fix available.
Solution :
- To solve this error first we need to open pubspec.yaml file present in our Flutter project.
- Open pubspec.yaml file , Then Find line dependencies: and put http: ^0.12.0 just right after it and Save the file.
dependencies:
http: ^0.12.0
flutter:
sdk: flutter