Pas encore en français : cette page est en anglais.

How to deploy a Flutter web app for free, from build/web

Quick answer

To deploy a Flutter web app for free, run flutter build web and drop the build/web folder on Convika's upload screen. Convika serves it at its own address, such as my-app.convika.page, so the default base href of / works, .wasm files load as application/wasm, and path URLs open on reload. Sign up free, with no credit card and no Git.

Deploy my Flutter app for free

Free plan: no credit card, 5 published pages, 10,000 page views a month.

On this page

To deploy a Flutter web app for free, run flutter build web and drop the build/web folder on Convika's upload screen. Convika serves it as a site at its own address, such as my-app.convika.page: index.html and flutter_bootstrap.js load from the root, the default <base href="/"> works as it is, and a .wasm file is sent as application/wasm. Send the link to a tester's phone in minutes. No Firebase project, no Git, and no credit card.

What to build, and the folder to drop

flutter build web compiles your Dart code and writes the app with its assets to build/web in the project. That folder is the app, and it is the only thing you upload.

Your buildBuild commandFolder to drop
JavaScript (the default)flutter build webbuild/web
WebAssembly with a JavaScript fallbackflutter build web --wasmbuild/web

Deploy a Flutter web app in 5 steps

1. Build the app

In the project folder, run:

flutter build web

Flutter prints "Compiling lib/main.dart for the Web..." and then the folder it wrote, build/web.

2. Sign up free

Sign up free, with no credit card. Convika opens the upload screen, Put your page or file online.

3. Drop the build/web folder

Drop web from build on Drop a file or folder here, or click Choose a folder. A .zip of the folder works too. Convika reads it in your browser and shows "Uploads as a site" with the number of files. Under Site URL, Convika offers a free name such as my-app.convika.page; type another to check it. Click Create my preview.

4. Check the private preview

Convika uploads the files and opens a private preview of the app. Tap through its screens on your phone and your computer, and reload on a screen other than the first.

5. Publish it

Click Publish page. Under Who can open this page?, choose Public and click Next. The first time, Convika shows Publish free, and under it Publish without the Convika bar, which starts Pro with its free trial: 7 days free, then $12 a month, cancel any time before it ends. To publish on Free, click Publish free. The app is live at my-app.convika.page.

Base href stays /

flutter build web writes <base href="/"> into index.html unless you pass --base-href. The app opens at the root of its own address, so build with the default: main.dart.js, flutter_bootstrap.js, assets/, and canvaskit/ all load from the root.

Hash URLs and path URLs both work

Flutter web's default URLs keep the route after a #, such as /#/settings, and a reload opens the app on that route. With usePathUrlStrategy(), the routes are real paths, such as /settings. A reload asks Convika for /settings, and Convika answers a path with no file extension that the app has no file for with index.html, so the app opens on that route too.

WebAssembly builds load as they should

flutter build web --wasm writes main.dart.wasm beside main.dart.js. Convika sends every .wasm file as application/wasm, so the browser compiles it as it downloads, and flutter_bootstrap.js picks the build the browser runs.

Run flutter build web again. In Convika, open the app's page screen. Under Update from an HTML file, click Upload a new version and drop the new build/web folder, or its .zip. Click Upload as a new version, open the preview, then click Publish v2 at the same link and confirm with Publish. Testers keep the same link, and each earlier version keeps its own files, so you can go back to one.

What Free includes, and what Pro adds

FreePro
PriceNo credit card7 days free, then $12 a month
Apps live at once5100
Page views a month10,000100,000
An app's files together100 MB5 GB
Who can open itPublicPublic, Private link, or Only people with the password
Convika barYesNo

A password or a private link keeps a beta for your testers only. Every app counts its visitors in your dashboard: where they came from and what they clicked.

Frequently asked questions

How do I deploy a Flutter web app for free?

Run flutter build web, then sign up free on Convika and drop the build/web folder on the upload screen. Click Create my preview, and publish with Publish page, Public, Next, and Publish free. The Free plan needs no credit card.

Which folder do I upload?

build/web in your Flutter project, the folder with index.html, flutter_bootstrap.js, and main.dart.js.

Do I need --base-href?

No. The app opens at the root of <name>.convika.page, so the default <base href="/"> is right.

Does a --wasm build work?

Yes. Convika serves main.dart.wasm as application/wasm, and flutter_bootstrap.js falls back to main.dart.js in a browser that can't run the WebAssembly build.

Does reloading a page of the app work?

Yes, with hash URLs and with usePathUrlStrategy(). Convika answers a route's path with index.html.

Do I need Firebase or Git?

No. Drop the folder or a .zip straight from your computer. No project to create, and nothing to push.

Next step

How to password protect an HTML page or website

A JavaScript password sits in the page source. Free: StatiCrypt or .htaccess. Paid: Netlify Pro $20, Vercel $20 a project, Tiiny Host $18, or Convika Pro.

Related articles

More ways to send your page

Skipbox

Cheap & fast GitHub Actions runners, unlimited for $39 a month

Your own machine keeps Docker layers and package caches between jobs. Switch by changing one runs-on line.

Start a free Skipbox trial⁠

Share this article

Your Flutter app, live at one link

Drop build/web. Convika serves the app at its own address, counts visitors, and keeps the link when you upload a new build.

Deploy my Flutter app for free

Free plan: no credit card, 5 published pages, 10,000 page views a month.