fix: handle connection time out

This commit is contained in:
henne 2024-03-12 11:33:00 +01:00
parent 453c76c48c
commit ed3475e2a7
2 changed files with 8 additions and 1 deletions

View File

@ -84,6 +84,13 @@ class LoginWidgetState extends ScanAwareState<LoginWidget> {
});
return;
}
if (err.message == "Connection timed out") {
setState(() {
_errorText = "The connection to get the user list has timed out.";
loading = false;
});
return;
}
rethrow;
} on HttpException catch (err) {
var errorText = "An unexpected error occured.";

View File

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.4.6+23
version: 1.4.7+24
environment:
sdk: ">=3.0.0"