fazer a tela de status

This commit is contained in:
2026-01-13 10:39:37 +00:00
parent 10e4af9aa4
commit eeb9f0e760
3 changed files with 49 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ class TeamCard extends StatelessWidget {
super.key,
required this.team,
required this.controller,
});
@override
@@ -40,7 +41,39 @@ class TeamCard extends StatelessWidget {
team.name,
style: const TextStyle(fontWeight: FontWeight.bold),
),
subtitle: Text("Temporada: ${team.season}"),
// Dentro do build do teu TeamCard, no subtitle:
subtitle: Padding(
padding: const EdgeInsets.only(top: 4.0),
child: Row(
children: [
// 1. JOGADORES (À ESQUERDA)
const Icon(Icons.groups, size: 16, color: Colors.grey),
const SizedBox(width: 4),
Text(
"${team.playerCount} Jogadores",
style: TextStyle(
color: team.playerCount == 0 ? Colors.orange : Colors.green,
fontWeight: FontWeight.w500,
fontSize: 13,
),
),
// SEPARADOR VISUAL
const Padding(
padding: EdgeInsets.symmetric(horizontal: 8),
child: Text("", style: TextStyle(color: Colors.grey, fontWeight: FontWeight.bold)),
),
// 2. TEMPORADA (A SEGUIR)
Text("${team.season} Temporada",
style: const TextStyle(
color: Colors.grey,
fontSize: 13,
),
),
],
),
),
// 3. TRAILING (Lado Direito): Botões de Status e Eliminar
trailing: SizedBox(