Nuevos assets para otras pantallas (meta)
Build & Deploy Farolero / Análisis de código (push) Failing after 56s
Build & Deploy Farolero / Build APK + AAB release (push) Has been skipped

This commit is contained in:
2026-05-11 19:04:45 +02:00
parent d338e78612
commit df2659ab9d
10 changed files with 51 additions and 12 deletions
+16 -6
View File
@@ -23,10 +23,17 @@ class PantallaHistorial extends StatelessWidget {
? Center(
child: Padding(
padding: const EdgeInsets.all(20),
child: EstadoVacioFarolero(
icono: Icons.history_rounded,
titulo: l10n.history,
subtitulo: l10n.noSavedGames,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const ArteGameplayFarolero.historial(height: 156),
const SizedBox(height: 12),
EstadoVacioFarolero(
icono: Icons.history_rounded,
titulo: l10n.history,
subtitulo: l10n.noSavedGames,
),
],
),
),
)
@@ -34,10 +41,13 @@ class PantallaHistorial extends StatelessWidget {
top: false,
child: ListView.separated(
padding: const EdgeInsets.fromLTRB(16, 12, 16, 24),
itemCount: partidas.length,
itemCount: partidas.length + 1,
separatorBuilder: (_, __) => const SizedBox(height: 12),
itemBuilder: (context, index) {
final partida = partidas[index];
if (index == 0) {
return const ArteGameplayFarolero.historial(height: 132);
}
final partida = partidas[index - 1];
final ganaronJugadores = partida.ganador == 'jugadores';
final color = ganaronJugadores
? TemaApp.colorVerde