fazer a tela de status
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user