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