Ismail Muhammad
Ismail Muhammad

Reputation: 370

flutter can't delete library from pup

I tried many time to unistall webview_flutter: ^2.0.13 but still unable to delete it, even I removed it from pupspec, I need to delete it because im getting errors but I still see the package in the flutter plugin folder

enter image description here

Upvotes: 0

Views: 506

Answers (2)

kadan 24
kadan 24

Reputation: 11

  1. Flutter pub remove webview_flutter
  2. flutter pub cache clean

Upvotes: 1

G H Prakash
G H Prakash

Reputation: 1857

If a dependency is removed from the pubspec and then pub get is run, it removes the dependency from the .packages file, making the dependency unavailable for importing.

If a packages in your pub cache to change or break, you can use flutter pub cache repair command performs a clean reinstall of all hosted and git packages in the system cache.

Upvotes: 0

Related Questions