File tree 3 files changed +4
-11
lines changed
3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,6 @@ class LeaderboardState extends State<Leaderboard> {
54
54
const SizedBox (height: defaultPadding),
55
55
...accountInfoCards,
56
56
const SizedBox (height: defaultPadding),
57
- ElevatedButton (
58
- onPressed: () {
59
- user.addScore (10 );
60
- updateLeaderboard ();
61
- },
62
- child: const Text ('Debug addScore(10)' ),
63
- ),
64
57
],
65
58
),
66
59
);
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class _MainScreenState extends State<MainScreen> {
46
46
// page = RoadmapScreen(onNavButtonPressed: upNavBarId);
47
47
break ;
48
48
case 1 :
49
- page = ProfileScreen (onTestButtonPressed : updateLeaderboardState);
49
+ page = ProfileScreen (onDebugAddScoreButtonPressed : updateLeaderboardState);
50
50
break ;
51
51
case 2 :
52
52
page = const SettingsScreen ();
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import '../main/components/progress_levels.dart' as pl;
8
8
9
9
class ProfileScreen extends StatefulWidget {
10
10
11
- ProfileScreen ({super .key, required this .onTestButtonPressed });
12
- Function () onTestButtonPressed ;
11
+ ProfileScreen ({super .key, required this .onDebugAddScoreButtonPressed });
12
+ Function () onDebugAddScoreButtonPressed ;
13
13
14
14
final UserManager userManager = UserManager .instance;
15
15
@@ -74,7 +74,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
74
74
const SizedBox (height: 30 ),
75
75
ElevatedButton (
76
76
onPressed: () =>
77
- < void > {_addScore (10 ), widget.onTestButtonPressed ()},
77
+ < void > {_addScore (10 ), widget.onDebugAddScoreButtonPressed ()},
78
78
child: const Text ('Debug addScore(10)' ),
79
79
),
80
80
],
You can’t perform that action at this time.
0 commit comments