mchess-client/lib/pages/lobby_selector.dart

20 lines
424 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 MaterialApp(
home: Scaffold(
body: TextButton(
onPressed: () {
context.go("/play");
},
child: const Text('Random lobby'),
)),
);
}
}