【发布时间】:2020-09-25 15:27:54
【问题描述】:
我使用命令运行了一个颤振项目
flutter run -d web-server --web-port=5000
这是相同的输出日志,我觉得不错:
Launching lib/main.dart on Web Server in debug mode... Syncing files to device Web Server... 22,524ms (!) lib/main.dart is being served at http://localhost:5000
Warning: Flutter's support for web development is not stable yet and hasn't been thoroughly tested in production environments. For more information see https://flutter.dev/web
???? To hot restart changes while running, press "r". To hot restart (and refresh the browser), press "R". For a more detailed help message, press "h". To quit, press "q".
但是当我在浏览器中打开 url http://localhost:5000 时,它会抛出错误 404 not found。
【问题讨论】:
-
试试
http://localhost:5000/#/
标签: flutter flutter-web