|
@ -1,7 +1,6 @@ |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:flutter_bloc/flutter_bloc.dart'; |
|
|
import 'package:flutter_bloc/flutter_bloc.dart'; |
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart'; |
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart'; |
|
|
import 'package:image_picker/image_picker.dart'; |
|
|
|
|
|
import 'package:my_flutter_puzzle/application/states/image_splitter_state.dart'; |
|
|
import 'package:my_flutter_puzzle/application/states/image_splitter_state.dart'; |
|
|
import 'package:my_flutter_puzzle/application/states/puzzle_state.dart'; |
|
|
import 'package:my_flutter_puzzle/application/states/puzzle_state.dart'; |
|
|
import 'package:my_flutter_puzzle/cubits/count_down_timer_cubit.dart'; |
|
|
import 'package:my_flutter_puzzle/cubits/count_down_timer_cubit.dart'; |
|
@ -43,7 +42,6 @@ class _SoloScreenLargeState extends ConsumerState<PhotoScreenLarge> { |
|
|
late final RiveAnimationController _riveController; |
|
|
late final RiveAnimationController _riveController; |
|
|
bool _puzzleSolved = false; |
|
|
bool _puzzleSolved = false; |
|
|
bool _isStartPressed = false; |
|
|
bool _isStartPressed = false; |
|
|
final _imagePicker = ImagePicker(); |
|
|
|
|
|
final double _fontSize = 70.0; |
|
|
final double _fontSize = 70.0; |
|
|
final double _boardSize = 280.0; |
|
|
final double _boardSize = 280.0; |
|
|
final int _spacing = 4; |
|
|
final int _spacing = 4; |
|
@ -201,7 +199,6 @@ class _SoloScreenLargeState extends ConsumerState<PhotoScreenLarge> { |
|
|
Visibility( |
|
|
Visibility( |
|
|
visible: !_isStartPressed, |
|
|
visible: !_isStartPressed, |
|
|
child: ImageViewer( |
|
|
child: ImageViewer( |
|
|
imagePicker: _imagePicker, |
|
|
|
|
|
puzzleSize: _puzzleSize, |
|
|
puzzleSize: _puzzleSize, |
|
|
previousImage: _previousImage, |
|
|
previousImage: _previousImage, |
|
|
previousPalette: _previousPalette, |
|
|
previousPalette: _previousPalette, |
|
|