During coding ( flutter web ) on computer, all work fine, I run website on google in debugging, and there not any problem, when I make flutter build web --release
, and upload files to 000webhost, there nothing.. only white screen.
Asked
Active
Viewed 871 times
0

Benjamin Mahmic
- 76
- 5
-
2And? Are there errors on your server or in your browser's dev tools? – Roddy of the Frozen Peas Oct 17 '21 at 00:42
2 Answers
2
Checkout this answer
It usually happens because of improper placement of firebase JS SDK scripts. You have to setup the SDK before the script tag with main.dart.js.

sidrao2006
- 1,228
- 2
- 10
- 32
1
Update the <base href="/">
tag in web/index.html to the path where your app is hosted. For example, to host your Flutter app at myapp.dev/flutter_app, change this tag to <base href="/flutter_app/">
.
or you can even delete this line and it will work.
reference : Hosting a Flutter app at a non-root location

Kaushik Chandru
- 15,510
- 2
- 12
- 30