20 lines
424 B
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'),
|
|
)),
|
|
);
|
|
}
|
|
}
|