diff --git a/packages/neon/lib/src/pages/login.dart b/packages/neon/lib/src/pages/login.dart index 393f6838..6f120c86 100644 --- a/packages/neon/lib/src/pages/login.dart +++ b/packages/neon/lib/src/pages/login.dart @@ -141,10 +141,12 @@ class _LoginPageState extends State { icon: const Icon(Icons.arrow_back), ), actions: [ - IconButton( - onPressed: _loginBloc.refresh, - icon: const Icon(Icons.refresh), - ), + if (serverConnectionStateSnapshot.data != null) ...[ + IconButton( + onPressed: _loginBloc.refresh, + icon: const Icon(Icons.refresh), + ), + ], ], ) : null,