Skip to content

Commit 942479a

Browse files
committed
Hide difficulty while replaying puzzles
1 parent bc62c3e commit 942479a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/src/model/puzzle/puzzle_service.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ class PuzzleContext with _$PuzzleContext {
6161

6262
/// List of solved puzzle results if available.
6363
IList<PuzzleRound>? rounds,
64+
65+
@Default(false) bool replaying,
6466
}) = _PuzzleContext;
6567
}
6668

@@ -140,6 +142,7 @@ class PuzzleService {
140142
userId: userId,
141143
glicko: null,
142144
rounds: null,
145+
replaying: true,
143146
),
144147
);
145148
} else {

lib/src/view/puzzle/puzzle_screen.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@ class _BottomBar extends ConsumerWidget {
396396
return PlatformBottomBar(
397397
mainAxisAlignment: MainAxisAlignment.spaceAround,
398398
children: [
399-
if (initialPuzzleContext.userId != null &&
399+
if (!initialPuzzleContext.replaying &&
400+
initialPuzzleContext.userId != null &&
400401
!isDailyPuzzle &&
401402
puzzleState.mode != PuzzleMode.view)
402403
_DifficultySelector(

0 commit comments

Comments
 (0)