flutter摸着石头过海之热重载失效
打算用flutter开发一个App,突然有一天发现热部署失效了(之前是好的)。
之前也遇到过一次是代码的问题 ----- 只有build的中的代码才热重载。
本次各种检查实验后均无效后,决定更新一下Flutter试试,执行flutter upgrade后提示
Your flutter checkout has local changes that would be erased by upgrading. If you want to keep these changes, it is recommended that you stash them via “git stash” or else commit the changes to a local branch. If it is okay to remove local changes, then re-run this command with --force.
根据提示 强制更新后,好了!!,也不知道本地改啥了,,具体原因不在深追了,反正好了!!