|
@ -70,30 +70,6 @@ class _SoloScreenLargeState extends ConsumerState<PhotoScreenLarge> { |
|
|
_eachBoxSize = (_boardSize / _puzzleSize) - (_spacing * (_puzzleSize - 1)); |
|
|
_eachBoxSize = (_boardSize / _puzzleSize) - (_spacing * (_puzzleSize - 1)); |
|
|
_initialPuzzleData = widget.initialPuzzleData; |
|
|
_initialPuzzleData = widget.initialPuzzleData; |
|
|
_riveController = widget.riveController; |
|
|
_riveController = widget.riveController; |
|
|
Timer timer = Timer( |
|
|
|
|
|
const Duration(seconds: 10), |
|
|
|
|
|
() { |
|
|
|
|
|
_puzzleSolved = true; |
|
|
|
|
|
BlocProvider.of<CountDownTimerCubit>(context).stop(); |
|
|
|
|
|
BlocProvider.of<LevelListCubit>(context).setRecordDuration( |
|
|
|
|
|
widget.level, |
|
|
|
|
|
BlocProvider.of<CountDownTimerCubit>(context).getDuration() ?? Duration(minutes: widget.duration), |
|
|
|
|
|
() { |
|
|
|
|
|
Future.delayed(const Duration(milliseconds: 500), () { |
|
|
|
|
|
Navigator.pushReplacement(context, MaterialPageRoute( |
|
|
|
|
|
builder: (context) { |
|
|
|
|
|
return WinScreen( |
|
|
|
|
|
tiles: _tiles, |
|
|
|
|
|
move: _moves, |
|
|
|
|
|
level: widget.level, |
|
|
|
|
|
); |
|
|
|
|
|
}, |
|
|
|
|
|
)); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
); |
|
|
|
|
|
}, |
|
|
|
|
|
); |
|
|
|
|
|
super.initState(); |
|
|
super.initState(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|