"GameState dispose didn't call super dispose" - or something along these lines when the game ends.
GameState is the GamePage's State object.
What I suspect is that the GamePage's dispose is async and there's an await call in it. Maybe that makes the call too long, and it "hangs" there and doesn't get to the super dispose for real. We'd convert the dispose back to non async and fire the GamesServices.submitScore call without await.
Also do a little refactor about when we call the timer in the _updateTime so we wouldn't keep fiddling with stuff once we start to programmatically navigate away to the GameOver page.
"
GameState
dispose didn't call super dispose" - or something along these lines when the game ends.GameState
is theGamePage
's State object.What I suspect is that the
GamePage
's dispose isasync
and there's anawait
call in it. Maybe that makes the call too long, and it "hangs" there and doesn't get to the super dispose for real. We'd convert the dispose back to nonasync
and fire theGamesServices.submitScore
call withoutawait
.Also do a little refactor about when we call the timer in the
_updateTime
so we wouldn't keep fiddling with stuff once we start to programmatically navigate away to theGameOver
page.