Flutter Bad state: Insecure HTTP is not allowed by platform

需要配置对Http请求的支持,用XCode打开项目,找到info.plist文件,加入
App Transport Security Settings ->Allow Arbitrary Loads->YES

Flutter Bad state: Insecure HTTP is not allowed by platform_第1张图片
image.png

你可能感兴趣的:(Flutter Bad state: Insecure HTTP is not allowed by platform)