Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do I use Flutter's hot reload for a web app that uses Firebase?

I am building a web app using Flutter and Firebase. If I make a change and save it, Chrome will perform a hot restart (opposed to a hot reload). I could build it to Windows instead, so I could take advantage of the hot reload, but Firebase is not supported on Windows apps.

How can I use both Firebase and Hot Reload for my Flutter web app?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Flutter for Web does not support hot reload.

From the Flutter documentation on building for web:

Hot reload is not supported in a web browser. Currently, Flutter only supports hot restart, which restarts your app without refreshing the web page.

So regardless of Firebase, Flutter doesn’t support hot-reload for web apps.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading