Nuevos assets para otras pantallas (meta)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user