diff --git a/lib/chessapp/chess_app.dart b/lib/chessapp/chess_app.dart index 77ab77f..eefffb1 100644 --- a/lib/chessapp/chess_app.dart +++ b/lib/chessapp/chess_app.dart @@ -63,17 +63,15 @@ class ChessApp extends StatelessWidget { ), ), ), - floatingActionButton: const FloatingActionButton( - onPressed: reconnect, - child: Icon(Icons.connect_without_contact), + floatingActionButton: FloatingActionButton( + onPressed: () { + ServerConnection.getInstance().reconnect(); + ConnectionCubit.getInstance().reconnect(); + }, + child: const Icon(Icons.network_wifi), ), ), ), ); } } - -void reconnect() { - ServerConnection.getInstance().reconnect(); - ConnectionCubit.getInstance().reconnect(); -}