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

VLAZ
29.6k9 gold badges65 silver badges88 bronze badges
asked Oct 20, 2020 at 10:49
3
  • See this link. You can run those commands. Commented Oct 24, 2020 at 11:29
  • its not working. Commented Oct 25, 2020 at 18:02
  • How are you running the site after you build it? Commented Feb 16, 2021 at 22:12

1 Answer 1

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

answered Dec 18, 2020 at 3:25
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.