Dropsource / monarch

Monarch is a tool for building Flutter widgets in isolation. It makes it easy to build, test and debug complex UIs.
https://monarchapp.io
MIT License
433 stars 22 forks source link

Detect reload crash, notify user of workaround, fix hot restart #74

Closed fertrig closed 1 year ago

fertrig commented 1 year ago

Detect hot reload crash and notify user of workaround

Since the workaround is to do hot-restart instead of hot-reload, this PR fixes #56 (hot restart on Windows).

Fix hot restart (on Windows)

The Window file system doesn't let us copy the new bundle while it is still open in the preview window. Thus, this PR closes the preview window before re-bundling. After the bundling is done, it will re-open the preview window with the new bundle.