Skip to content

Commit

Permalink
fix-leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
HaonRekcef committed Mar 11, 2024
1 parent 027fee3 commit a7ed9d0
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions lib/src/view/user/player_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import 'package:lichess_mobile/src/utils/l10n_context.dart';
import 'package:lichess_mobile/src/utils/navigation.dart';
import 'package:lichess_mobile/src/view/account/rating_pref_aware.dart';
import 'package:lichess_mobile/src/view/relation/following_screen.dart';
import 'package:lichess_mobile/src/view/user/leaderboard_screen.dart';
import 'package:lichess_mobile/src/view/user/leaderboard_widget.dart';
import 'package:lichess_mobile/src/view/user/search_screen.dart';
import 'package:lichess_mobile/src/view/user/user_screen.dart';
Expand Down Expand Up @@ -72,23 +71,7 @@ class _Body extends ConsumerWidget {
child: const _SearchButton(),
),
if (session != null) _OnlineFriendsWidget(),
if (session == null)
RatingPrefAware(child: LeaderboardWidget())
else
Align(
alignment: Alignment.centerLeft,
child: Padding(
padding: Styles.bodySectionPadding,
child: NoPaddingTextButton(
onPressed: () => pushPlatformRoute(
context,
title: context.l10n.leaderboard,
builder: (_) => const LeaderboardScreen(),
),
child: Text(context.l10n.leaderboard),
),
),
),
RatingPrefAware(child: LeaderboardWidget())
],
),
);
Expand Down

0 comments on commit a7ed9d0

Please sign in to comment.