|
|
@ -80,6 +80,9 @@ class _SoloScreenLargeState extends ConsumerState<PhotoScreenLarge> { |
|
|
|
_previousImage = next.image; |
|
|
|
_previousPalette = next.palette; |
|
|
|
}); |
|
|
|
ref.read(puzzleNotifierProvider(_solverClient).notifier).initializePuzzle( |
|
|
|
initialPuzzleData: _initialPuzzleData, |
|
|
|
); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
@ -100,13 +103,18 @@ class _SoloScreenLargeState extends ConsumerState<PhotoScreenLarge> { |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
Visibility( |
|
|
|
visible: !_isStartPressed, |
|
|
|
child: ImageViewer( |
|
|
|
puzzleSize: _puzzleSize, |
|
|
|
previousImage: _previousImage, |
|
|
|
previousPalette: _previousPalette, |
|
|
|
imageSize: 200, |
|
|
|
), |
|
|
|
), |
|
|
|
const SizedBox(height: 32), |
|
|
|
MovesTilesWidget(solverClient: _solverClient, fontSize: 16), |
|
|
|
const SizedBox(height: 32), |
|
|
|
GameButtonWidget( |
|
|
|
solverClient: _solverClient, |
|
|
|
initialPuzzleData: _initialPuzzleData, |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
@ -188,7 +196,6 @@ class _SoloScreenLargeState extends ConsumerState<PhotoScreenLarge> { |
|
|
|
CountdownWidget( |
|
|
|
isStartPressed: _isStartPressed, |
|
|
|
onFinish: () { |
|
|
|
// ref.read(timerNotifierProvider.notifier).startTimer(); |
|
|
|
BlocProvider.of<CountDownTimerCubit>(context).start(); |
|
|
|
setState(() { |
|
|
|
_isStartPressed = false; |
|
|
@ -196,15 +203,6 @@ class _SoloScreenLargeState extends ConsumerState<PhotoScreenLarge> { |
|
|
|
}, |
|
|
|
initialSpeed: kInitialSpeed, |
|
|
|
), |
|
|
|
Visibility( |
|
|
|
visible: !_isStartPressed, |
|
|
|
child: ImageViewer( |
|
|
|
puzzleSize: _puzzleSize, |
|
|
|
previousImage: _previousImage, |
|
|
|
previousPalette: _previousPalette, |
|
|
|
imageSize: 200, |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
], |
|
|
|