Problem
To use HTTP protocol in Flutter, there are few settings to go through. However, it is recommended to use HTTPS method unless it’s necessary.
Solution for IOS
1.
move to ios/Runner/Info.plist
2.
paste the code below
50 <key>NSAppTransportSecurity</key>
51 <dict>
52 <key>NSAllowsLocalNetworking</key>
53 <true/>
54 <key>NSAllowsArbitraryLoadsInWebContent</key>
55 <true/>
Plain Text
복사
Solution for Android
1.
move to android/app/src/main/AndroidManifest.xml
2.
paste the code below
3 <uses-permission android:name="android.permission.INTERNET"
8 android:usesCleartextTraffic="true"
XML
복사



