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
VLAZ
29.6k9 gold badges65 silver badges88 bronze badges
-
See this link. You can run those commands.Maryam K– Maryam K2020年10月24日 11:29:58 +00:00Commented Oct 24, 2020 at 11:29
-
its not working.Steven Dz– Steven Dz2020年10月25日 18:02:43 +00:00Commented Oct 25, 2020 at 18:02
-
How are you running the site after you build it?Aidan Marshall– Aidan Marshall2021年02月16日 22:12:24 +00:00Commented Feb 16, 2021 at 22:12
1 Answer 1
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
Sign up to request clarification or add additional context in comments.
Comments
lang-dart