Its easy to re install packages and remove them.
Use this command to delete all dependencies and clear project.
flutter pub remove <package-name>
Then this to make them again
flutter pub add <package-name>