diff --git a/lib/main.dart b/lib/main.dart index 1998f854..26877035 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -146,6 +146,9 @@ class _MyHomePageState extends State { }).catchError((e) { _serverConnection = false; + _serverStatusColor = Color.fromARGB(255, 250, 50, 50); + + _serverStatus = "Error connecting to $_serverAddress"; if (e is TimeoutException) { _serverMessage = "No response from server"; @@ -282,10 +285,13 @@ class _MyHomePageState extends State { children: [ Text('$_serverStatus', style: TextStyle( - color: _serverStatusColor, + color: _serverStatusColor, + ), + ), + Text('$_serverMessage', + style: TextStyle( + color: _serverStatusColor, ), - ), - Text('$_serverMessage' ), ], ),