Skip to content

Commit

Permalink
refactor: redirect to up game
Browse files Browse the repository at this point in the history
  • Loading branch information
dnielopez committed Oct 12, 2023
1 parent 601cc0f commit 5a57ea6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -55,11 +55,11 @@ final GoRouter _router = GoRouter(routes: <GoRoute>[
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) {
Expand Down
3 changes: 1 addition & 2 deletions lib/pages/mini-games/mini_games.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ class _MiniGamesPageState extends State<MiniGamesScreen> {
children: [
GameCardWidget(
text: 'UP',
route: "/mini_games/comming_soon",
// route: "/mini_games/up",
route: "/mini_games/up",
),
GameCardWidget(
text: 'COMING SOON',
Expand Down

0 comments on commit 5a57ea6

Please sign in to comment.