import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:my_flutter_puzzle/application/notifiers/image_splitter_notifier.dart'; import 'package:my_flutter_puzzle/application/notifiers/login_register_notifier.dart'; import 'package:my_flutter_puzzle/application/notifiers/puzzle_notifier.dart'; import 'package:my_flutter_puzzle/application/notifiers/puzzle_type_notifier.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/utils/image_splitter.dart'; import 'package:my_flutter_puzzle/utils/puzzle_solver.dart'; import 'application/notifiers/timer_notifier.dart'; final imageSplitterProvider = Provider((ref) => ImageSplitter()); final puzzleNotifierProvider = StateNotifierProvider.family( (ref, solverClient) => PuzzleNotifier(solverClient), ); final imageSplitterNotifierProvider = StateNotifierProvider( (ref) => ImageSplitterNotifier( ref.watch(imageSplitterProvider), ), ); final timerNotifierProvider = StateNotifierProvider( ((ref) => TimerNotifier()), ); final puzzleTypeNotifierProvider = StateNotifierProvider( (ref) => PuzzleTypeNotifier(), ); final isLoginNotifier = StateNotifierProvider( (ref) => IsLoginNotifier(), );