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

@@ -40,5 +40,9 @@ class TeamController {
} catch (e) {
print("Erro ao eliminar: $e");
}
Future<int> getPlayerCount(String teamId) async {
var snapshot = await _teamsRef.doc(teamId).collection('players').get();
return snapshot.docs.length;
}
}
}