Package does not exist in Flutter
Most of time Flutter beginners face issues while developing flutter app, like “Package doesn’t exit” or “package not added successfully” in pubspec.yaml file , so most easiest way to solve package doesn’t exist in your app are
Add package in pubspec.yaml file
dependencies:
http: # use latest version of http
Import package name where you need
import 'package:http/http.dart' as http;
Run below command in the terminal of your project
flutter clean
flutter pub get
Note: if you still face issue then restart IDE or select File (Android Studio), then click Invalidate Caches
Conslusion:-
In this article we have resolved issue in flutter like package doesn’t exist.