热重载返回到第一页

huangapple go评论51阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年4月17日 23:14:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/76036663-2.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定