Socket errors handling. Closes [#37] as well

This commit is contained in:
estevez
2018-09-16 15:47:27 +03:00
parent 9e23b92a33
commit 9c7a878bb1
2 changed files with 4 additions and 2 deletions

View File

@ -279,7 +279,7 @@ class _MainPageState extends State<MainPage> {
title: _buildTitle()
),
drawer: _buildAppDrawer(),
body: Text(_dataModelErrorMessage != null ? "Well... no. There was an error: $_dataModelErrorMessage" : "Loading... or not..."),
body: Text(_dataModelErrorMessage != null ? "Well... no.\n\nThere was an error:\n$_dataModelErrorMessage" : "Loading... or not...\n\nJust wait 10 seconds"),
floatingActionButton: new FloatingActionButton(
onPressed: _refreshData,
tooltip: 'Increment',