0

Flutter web release is not working, it works fine for flutter run -d chrome but when I try to flutter run --release or flutter build web, then there are some errors.

I have tried different channels and flutter clean

enter image description here

Steven Dz
  • 89
  • 5

1 Answers1

3

Open a terminal and navigate to the "your_app\build\web" and run the follow command:

python -m http.server 8000

After that open your browse at localhost:8000

You can find more details in here (https://flutter.dev/docs/deployment/web) see "Building the app for release" session