-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SocketException with flutter 3.13.x #12
Comments
Is this the same as #11 ? |
@OutdatedGuy I'm not sure. #11 does not mention the flutter version used, and the exception type is different. In my case, the error is triggered by simply accessing BTW, I just notice the error also happened when using plugin v1.0.0, maybe it has something to do on what the plugin is depending on. One thing is that, the error is only caught if the "Uncaught Exception" is enabled in VSCode, else the app seems to run fine. Another thing I don't understand is that wrapping the access to |
@tksoh, Some issue with Flutter 3.13 I presume. Cuz after testing the issue on my side, the exception seems to be thrown in the But I have already wrapped that code in internet_connection_checker_plus/lib/src/internet_connection.dart Lines 129 to 141 in f50bb13
So I downgraded the http package to Can you confirm if the issue is not happening prior to flutter version |
Looks like the issue is with the latest Dart SDK that comes with Flutter 3.13: dart-lang/sdk#53334 |
Glad to know. Hopefully they can cut a new Dart soon on this. |
Ah... I deleted my earlier reply. Looks like I mixed up on the Dart version in Flutter 3.13.3. My bad. |
Flutter 3.13.4 with Dart 3.1.2 fixed the issue. |
In my Android project using plugin v2.0.0, this error came up when debugging the app on VSCode (v1.18.1), with Flutter 3.13.0 & 3.13.1, when internet is offline.
Output of flutter doctor:
No issue with Flutter 3.10.5.
Please advice. Thanks.
The text was updated successfully, but these errors were encountered: