2022-12-25 15:16:23 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:go_router/go_router.dart';
|
|
|
|
|
|
|
|
class LobbySelector extends StatelessWidget {
|
|
|
|
const LobbySelector({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2022-12-25 19:18:50 +00:00
|
|
|
return Scaffold(
|
2023-06-08 15:10:48 +00:00
|
|
|
body: Center(
|
|
|
|
child: TextButton(
|
|
|
|
onPressed: () {
|
|
|
|
context.goNamed('prepareChessGame');
|
|
|
|
},
|
|
|
|
child: const Text('Random lobby'),
|
|
|
|
),
|
2022-12-25 19:18:50 +00:00
|
|
|
),
|
2022-12-25 15:16:23 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|