Reason publish locally test just follow the tutorial official website: https://flutter.dev/docs/deployment/web
However, in order to start the machine service port of python -m SimpleHTTPServer 8000 in python3 the environment has changed: Python -m http.server