Steps to Reproduce
main() async {
var client = HttpClient();
client.openUrl("get", Uri.parse("http://ptsv2.com/t/e2xwh-1622643201"));
return runApp(MaterialApp(home: Scaffold(
body: Center(child: Text("Hello")),
)));
}
Expected results:
Would not throw.
Actual results:
ArgumentError (Invalid argument(s): Invalid internet address ptsv2.com) (both on android and ios).
[✓] Flutter (Channel stable, 2.2.0, on macOS 11.2.1 20D74 darwin-x64, locale en-EE)
• Flutter version 2.2.0 at /Users/silver/flutter
• Framework revision b22742018b (3 weeks ago), 2021-05-14 19:12:57 -0700
• Engine revision a9d88a4d18
• Dart version 2.13.0
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/silver/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
• All Android licenses accepted.
Related but got closed: #82405
Steps to Reproduce
Expected results:
Would not throw.
Actual results:
ArgumentError (Invalid argument(s): Invalid internet address ptsv2.com)(both on android and ios).Related but got closed: #82405