fix: handle connection time out
This commit is contained in:
parent
453c76c48c
commit
ed3475e2a7
|
@ -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.";
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue