'Update local packages and hot reload to project
Hi I have a local package that I import in a project
Project pubspec.yaml:
dependencies:
my_local_package:
path: ../my_local_package
I have both the my_local_package and project open in 2 tabs in android studio. I want to update the my_local_package and press hot reload and receive the updates.
Update my_local_package -> Press Hot reload in main_project -> Updates received
How can I do this?
Solution 1:[1]
hot reload need sometimes full reload https://docs.flutter.dev/development/tools/hot-reload#special-cases
Solution 2:[2]
The only way I can archive the behavior is to move the local package into the working project, and modify the package within the same window.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Taz |
| Solution 2 | Eric Aya |
