Mejora flujo de datos en partidas multidispositivos
All checks were successful
Build & Deploy Farolero / Análisis de código (push) Successful in 12s
Build & Deploy Farolero / Build APK + AAB release (push) Successful in 1m53s

This commit is contained in:
2026-05-04 20:23:47 +02:00
parent 01b65a3d29
commit 7dd6c7bd74
5 changed files with 557 additions and 44 deletions

View File

@@ -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();
},
),
),