From 5a57ea6b587e75151e7a67563259b6291c628152 Mon Sep 17 00:00:00 2001 From: Dan Lopez Date: Thu, 12 Oct 2023 17:30:48 -0500 Subject: [PATCH] refactor: redirect to up game --- lib/main.dart | 12 ++++++------ lib/pages/mini-games/mini_games.dart | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 4a8c2ca..313925f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -8,7 +8,7 @@ import 'package:dinogrow/pages/login.dart'; import 'package:dinogrow/pages/setup_account.dart'; import 'package:dinogrow/pages/setup_password.dart'; import 'package:dinogrow/pages/mini-games/mini_games.dart'; -// import 'package:dinogrow/pages/mini-games/up/up.dart'; +import 'package:dinogrow/pages/mini-games/up/up.dart'; import 'package:dinogrow/pages/mini-games/coming_soon.dart'; void main() { @@ -55,11 +55,11 @@ final GoRouter _router = GoRouter(routes: [ builder: (context, state) { return const MiniGamesScreen(); }), - // GoRoute( - // path: '/mini_games/up', - // builder: (context, state) { - // return GameWidgetUp(game: UpGame()); - // }), + GoRoute( + path: '/mini_games/up', + builder: (context, state) { + return GameWidgetUp(game: UpGame()); + }), GoRoute( path: '/mini_games/comming_soon', builder: (context, state) { diff --git a/lib/pages/mini-games/mini_games.dart b/lib/pages/mini-games/mini_games.dart index 26bd56d..005af61 100644 --- a/lib/pages/mini-games/mini_games.dart +++ b/lib/pages/mini-games/mini_games.dart @@ -28,8 +28,7 @@ class _MiniGamesPageState extends State { children: [ GameCardWidget( text: 'UP', - route: "/mini_games/comming_soon", - // route: "/mini_games/up", + route: "/mini_games/up", ), GameCardWidget( text: 'COMING SOON',