Set standard position.

This commit is contained in:
Marco 2022-11-19 16:55:37 +01:00
parent 35f815e82f
commit 4a0e57902c

View File

@ -63,17 +63,15 @@ class ChessApp extends StatelessWidget {
), ),
), ),
), ),
floatingActionButton: const FloatingActionButton( floatingActionButton: FloatingActionButton(
onPressed: reconnect, onPressed: () {
child: Icon(Icons.connect_without_contact), ServerConnection.getInstance().reconnect();
ConnectionCubit.getInstance().reconnect();
},
child: const Icon(Icons.network_wifi),
), ),
), ),
), ),
); );
} }
} }
void reconnect() {
ServerConnection.getInstance().reconnect();
ConnectionCubit.getInstance().reconnect();
}