Skip to content

Commit 6b73a43

Browse files
committed
Hide difficulty while replaying puzzles
1 parent 8f5cfdd commit 6b73a43

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
@@ -441,7 +441,8 @@ class _BottomBarState extends ConsumerState<_BottomBar> {
441441
return PlatformBottomBar(
442442
mainAxisAlignment: MainAxisAlignment.spaceAround,
443443
children: [
444-
if (widget.initialPuzzleContext.userId != null &&
444+
if (!widget.initialPuzzleContext.replaying &&
445+
widget.initialPuzzleContext.userId != null &&
445446
!isDailyPuzzle &&
446447
puzzleState.mode != PuzzleMode.view)
447448
_DifficultySelector(initialPuzzleContext: widget.initialPuzzleContext),

0 commit comments

Comments
 (0)