简体   繁体   English

如何在内网运行Flutter web?

[英]How to run Flutter web on intranet?

I try to use Chrome (web-javascript) on vs code to debug my application.我尝试在 vs 代码上使用Chrome (web-javascript)来调试我的应用程序。

在此处输入图像描述

But Chrome (web-javascript) cannot connect to the intranet .但是Chrome (web-javascript)无法连接到内网

在此处输入图像描述

My app try to look up an internal route, but it cannot reach.我的应用程序尝试查找内部路线,但无法到达。

final connection = await InternetAddress.lookup(internalRoute);

show error显示错误

Unsupported operation: InternetAddress.lookup

How to fix this?如何解决这个问题?

enter command 'git config --enable-web' on terminal and try to do run flutter application.在终端上输入命令 'git config --enable-web' 并尝试运行 flutter 应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM