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