When I'm going back from the final view to my "initial view" every State
of all 3 BlocProviders
is being saved.
My Code is linked here: GIST
I don't understand what I am missing, on first run everything works fine.
However, when I go back to InitialView
when I'm in GameView
, set everything up again and move to the GameModeSelectionView again, its getting called multiple times (States are somehow saved instead of dumped??)(1):
flutter: State of GameSelectionState GameSelectionInitial
flutter: State of GameSelectionState GameSelectionStart
flutter: State of QuestionState StopQuestion
flutter: OK?
flutter: State of GameSelectionState GameSelectionStart
flutter: State of QuestionState StopQuestion
flutter: OK?
flutter: State of GameSelectionState GameSelectionStart
flutter: State of QuestionState StopQuestion
flutter: OK?
flutter: State of GameSelectionState GameSelectionInitial
This process grows with each iteration (1)
I am using the flutter_bloc dependency: https://pub.dev/packages/flutter_bloc