Mejora flujo de datos en partidas multidispositivos
This commit is contained in:
@@ -147,10 +147,14 @@ class _PantallaUnirseState extends State<PantallaUnirse> {
|
||||
void _navegarSegunFase(String fase) {
|
||||
switch (fase) {
|
||||
case 'debate':
|
||||
final datosFase = context.read<ServicioNearby>().datosPartida;
|
||||
Navigator.of(context).pushReplacement(
|
||||
MaterialPageRoute(
|
||||
builder: (_) => PantallaDebateCliente(
|
||||
tiempoDebateSegundos: null,
|
||||
tiempoDebateSegundos:
|
||||
datosFase?['tiempoDebateSegundos'] as int?,
|
||||
primerTurnoNombre:
|
||||
datosFase?['primerTurnoNombre'] as String?,
|
||||
onSolicitarVotacion: () {
|
||||
final nearby = context.read<ServicioNearby>();
|
||||
if (nearby.hostEndpointId != null) {
|
||||
@@ -190,7 +194,6 @@ class _PantallaUnirseState extends State<PantallaUnirse> {
|
||||
);
|
||||
}
|
||||
}
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user