From 4a0e57902c16fa4a946e0a9b404f302e8a4a7682 Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 19 Nov 2022 16:55:37 +0100 Subject: [PATCH] Set standard position. --- lib/chessapp/chess_app.dart | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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(); -}