How to Use Customised pub.dev Packages for Your Flutter Project
Step 1: Add the Package to Your Project
Step 2: Access the Hidden .pub-cache Folder
Step 3: Locate and Copy the Package
(Ex: webview_flutter-4.7.0)
Note: You can skip the above steps and download the package directly from the Git repository. In cases where only the latest version is available, you can follow the above steps to download the correct version.
领英推荐
Step 4: Move the Package to Your Project
Step 5: Update pubspec.yaml to Use the Local Package
dependencies:
package_name:
path: ./package_name
Ex:
Step 6: Run pub get and Clean Up
Step 7: Make your changes to the local package.