corrección de errores de compilación, eso espero
This commit is contained in:
@@ -47,7 +47,7 @@ class _PantallaDebateState extends State<PantallaDebate> {
|
|||||||
String _formatearTiempo(int segundos) {
|
String _formatearTiempo(int segundos) {
|
||||||
final min = segundos ~/ 60;
|
final min = segundos ~/ 60;
|
||||||
final seg = segundos % 60;
|
final seg = segundos % 60;
|
||||||
return '${min.toString().padLeft(2, '0')}:${seg.toString().padLeft(2, '0')}';
|
return "${min.toString().padLeft(2, '0')}:${seg.toString().padLeft(2, '0')}";
|
||||||
}
|
}
|
||||||
|
|
||||||
void _irAVotacion() {
|
void _irAVotacion() {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class _PantallaDebateClienteState extends State<PantallaDebateCliente> {
|
|||||||
String _formatearTiempo(int segundos) {
|
String _formatearTiempo(int segundos) {
|
||||||
final min = segundos ~/ 60;
|
final min = segundos ~/ 60;
|
||||||
final seg = segundos % 60;
|
final seg = segundos % 60;
|
||||||
return '${min.toString().padLeft(2, '0')}:${seg.toString().padLeft(2, '0')}';
|
return "${min.toString().padLeft(2, '0')}:${seg.toString().padLeft(2, '0')}";
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class _PantallaGestorHostState extends State<PantallaGestorHost> {
|
|||||||
String _formatearTiempo(int segundos) {
|
String _formatearTiempo(int segundos) {
|
||||||
final min = segundos ~/ 60;
|
final min = segundos ~/ 60;
|
||||||
final seg = segundos % 60;
|
final seg = segundos % 60;
|
||||||
return '${min.toString().padLeft(2, '0')}:${seg.toString().padLeft(2, '0')}';
|
return "${min.toString().padLeft(2, '0')}:${seg.toString().padLeft(2, '0')}";
|
||||||
}
|
}
|
||||||
|
|
||||||
void _avanzarAFase(FaseJuego fase) {
|
void _avanzarAFase(FaseJuego fase) {
|
||||||
|
|||||||
@@ -24,6 +24,10 @@ class PantallaHistorial extends StatelessWidget {
|
|||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
final partida = partidas[index];
|
final partida = partidas[index];
|
||||||
final ganaronJugadores = partida.ganador == 'jugadores';
|
final ganaronJugadores = partida.ganador == 'jugadores';
|
||||||
|
final dia =
|
||||||
|
partida.fecha.day.toString().padLeft(2, '0');
|
||||||
|
final mes =
|
||||||
|
partida.fecha.month.toString().padLeft(2, '0');
|
||||||
return Card(
|
return Card(
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
leading: CircleAvatar(
|
leading: CircleAvatar(
|
||||||
@@ -45,7 +49,7 @@ class PantallaHistorial extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
isThreeLine: true,
|
isThreeLine: true,
|
||||||
trailing: Text(
|
trailing: Text(
|
||||||
'${partida.fecha.day.toString().padLeft(2, '0')}/${partida.fecha.month.toString().padLeft(2, '0')}',
|
'$dia/$mes',
|
||||||
style: Theme.of(context).textTheme.bodySmall,
|
style: Theme.of(context).textTheme.bodySmall,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user