Skip to content

Commit 99db831

Browse files
authored
Merge pull request #106 from appKom/bits-routing-fix
routing fix
2 parents 128cfb2 + 92548b0 commit 99db831

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/pages/games/bits/bits_home_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class BitsHomePageState extends State<BitsHomePage> {
137137

138138
List<String> playerNames = controllers.map((c) => c.text.trim()).toList();
139139

140-
context.go('/social/games/bitsgame', extra: playerNames);
140+
context.go('/social/bitsgame', extra: playerNames);
141141
}
142142

143143
@override

lib/pages/games/bits/bits_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import 'dart:math';
22

33
import 'package:flutter/material.dart';
4+
import 'package:go_router/go_router.dart';
45
import 'package:online/pages/games/bits/bits_card.dart';
56

6-
import '/services/app_navigator.dart';
77
import '/theme/theme.dart';
88
import 'bits_model.dart';
99

@@ -145,7 +145,7 @@ class _BitsGameState extends State<BitsGame> {
145145
),
146146
),
147147
AnimatedButton(
148-
onTap: AppNavigator.pop,
148+
onTap: () => context.go('/social'),
149149
scale: 0.9,
150150
childBuilder: (context, hover, pointerDown) {
151151
return ThemedIcon(

0 commit comments

Comments
 (0)