19 lines
410 B
Dart
19 lines
410 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: TextButton(
|
|
onPressed: () {
|
|
context.goNamed('prepareChessGame');
|
|
},
|
|
child: const Text('Random lobby'),
|
|
),
|
|
);
|
|
}
|
|
}
|