英文:
Hot reload returns to the first page
问题
关于Flutter的问题,我自己制作的应用程序,从登录页面登录并显示下一个页面时,当我编辑main.dart并保存时,它返回到第一页。热重载应该按规范返回到第一页,而不是为当前页面工作吗?
在隔离原因之后,当设备是Chrome时,它变成了HotRestart。如果设备是Windows,那么它就是HotReload。Chrome不支持HotReload吗?
英文:
I have a question about Flutter.
In the application I made myself, log in from the login page and display the next page,
When I edit main.dart and save it, it returns to the first page.
Is it by specification that hot reload should return to the first page instead of working for the current page?
Added 4/18 10:15 JST.
After isolating the cause, it became HotRestart when the device was chrome. If the device is windows, it became HotReload.
Is HotReload not supported in chrome?
答案1
得分: 1
"Hot reload is not supported for Flutter web. These official docs make it clear that 'Flutter web currently supports hot restart but not hot reload.' You'll have to use hot restart for now!
英文:
Hot reload is not supported for Flutter web. These official docs make it clear that "Flutter web currently supports hot restart but not hot reload." You'll have to use hot restart for now!
答案2
得分: 0
大多数情况下,热重载仅在该页面上进行更改,应用程序重新加载称为热重启。
英文:
In most cases HOT RELOAD work as change on only that page, The app reload is called HOT RESTART.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论