mchess-client/lib/utils/chess_router.dart

17 lines
376 B
Dart
Raw Normal View History

2022-12-25 15:16:23 +00:00
import 'package:go_router/go_router.dart';
import 'package:mchess/pages/chess_game.dart';
2022-12-25 15:16:23 +00:00
import 'package:mchess/pages/lobby_selector.dart';
final router = GoRouter(
routes: [
GoRoute(
path: '/',
builder: (context, state) => const LobbySelector(),
),
GoRoute(
path: '/play',
builder: (context, state) => const ChessGame(),
2022-12-25 15:16:23 +00:00
)
],
);