After updating my flutter version to the latest version (version 3.10.5), some of the files from one of my packages had code that was deprecated, and stopped the program from running. What is strange is that these folders were all located in a different directory that I have never seen before. I will copy the path of one of the files for reference:
/Users/alex_1/.pub-cache/git/flutter_paystack-a4a33c3dd0a12f46d655a2e63d11e9f20ba82d01/lib/src/widgets/buttons.dart
In order to get my project to run, I had to change some of the code in these files. Specifically, I had to replace the deprecated code with the new supported code.
What I don't understand is that these files are not even in my project folder. They are in the directory specified above. Furthermore, I can't push these changes to the Github repository of my project. While editing the folder, I get this warning:
I also see this pop up:
Please can someone explain what this .pubcache folder is, and why it contains files that affect my project - but aren't actually in my project.
Here is the package in the Pubspec.yaml:
I would really appreciate it, thanks!