在谷歌浏览器运行的时候一直提示端口号被占,于是网上查资料,运行的时候改端口号
flutter run -d chrome --web-port=8088
但是还是报错,看到别人说是因为adress=localhost导致的
运行时不但改端口号 还需要将localhost改成127.0.0.1
运行命令:
flutter run -d chrome --target=lib/main.dart --web-port=8220 --web-hostname=127.0.0.1
目前暂时解决问题