With Flutter 2.0, you can ship your existing mobile app as a web app with little or no change to the existing code. At the time of writing, the stable build for the web is suitable for developing:
- Single–page apps (SPAs) that run on a single page and update dynamically without loading a new page
- Progressive web apps (PWAs), which can be run as desktop apps
We’ll show you how to convert your Flutter mobile app to a web app and deploy it on Firebase Hosting.
We’ll build an example Flutter app that shows the list of shopping categories. Clicking a category opens a list of available products. Users can add and remove products from the cart. We’ll target this simple app to ship to the web with the same code.