[#30] Snackbar with connection error. New initial loading screen

This commit is contained in:
estevez
2018-09-18 00:12:11 +03:00
parent 81d8ec3de0
commit f7b8c65798
3 changed files with 58 additions and 28 deletions

View File

@ -42,7 +42,7 @@ class HassioDataModel {
//Fetch timeout timer
_fetchingTimer = Timer(Duration(seconds: 10), () {
closeConnection();
_fetchCompleter.completeError({"message": "Data fetching timeout."});
_fetchCompleter.completeError({"errorCode" : 1,"errorMessage": "Connection timeout"});
});
_fetchCompleter = new Completer();
_reConnectSocket().then((r) {