|
|
@ -24,6 +24,8 @@ class StartGameListener extends StatelessWidget {
|
|
|
|
return BlocListener<StartGameBloc, StartGameState>(
|
|
|
|
return BlocListener<StartGameBloc, StartGameState>(
|
|
|
|
listener: (context, state) {
|
|
|
|
listener: (context, state) {
|
|
|
|
switch (state.status) {
|
|
|
|
switch (state.status) {
|
|
|
|
|
|
|
|
case StartGameStatus.initial:
|
|
|
|
|
|
|
|
break;
|
|
|
|
case StartGameStatus.selectCharacter:
|
|
|
|
case StartGameStatus.selectCharacter:
|
|
|
|
_onSelectCharacter(context);
|
|
|
|
_onSelectCharacter(context);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -33,8 +35,6 @@ class StartGameListener extends StatelessWidget {
|
|
|
|
case StartGameStatus.play:
|
|
|
|
case StartGameStatus.play:
|
|
|
|
_game.gameFlowController.start();
|
|
|
|
_game.gameFlowController.start();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case StartGameStatus.initial:
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: _child,
|
|
|
|
child: _child,
|
|
|
|