mchess-client/lib/pages/lobby_selector.dart
2023-06-08 17:10:48 +02:00

21 lines
452 B
Dart

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) {
return Scaffold(
body: Center(
child: TextButton(
onPressed: () {
context.goNamed('prepareChessGame');
},
child: const Text('Random lobby'),
),
),
);
}
}