huhx / flutter_sudoku

Sudoku games written in Flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimize usage of riverpod in sudoku

huhx opened this issue · comments

commented

I feel like there maybe have a better way to combine sudokuNotifier with counterNotifier.

  1. sudokuNotifier own gameStatus, when gameStatus is failed or success, it should notify counterNotifier stop timer get the duration.
  2. counterNotifier own the timer and durations, when receive notification from sudokuNotifier, it should stop timer.