[Solved] http package does not exist flutter

Flutter errors

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

http package does not exist flutter
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

Package doesn't exit

Conslusion:-

In this article we have resolved issue in flutter like package doesn’t exist.

Leave a Reply

Your email address will not be published. Required fields are marked *

web_horizontal
About Us Disclaimer Privacy Policy Terms & Conditions Contact Us

Copyright © 2023 ResearchThinker.com. All rights reserved.