require full teams for bracket initialization

This commit is contained in:
2026-03-13 15:04:17 +01:00
parent cc7faf477b
commit 95897ccc07
6 changed files with 40 additions and 22 deletions

View File

@@ -52,8 +52,9 @@ class MyTeamsWidget extends StatelessWidget {
final memberCountText = team.memberCount != null
? "${team.memberCount}/4 Mitglieder"
: "Keine Mitglieder";
final description =
team.description.isEmpty ? "Keine Beschreibung" : team.description;
final description = team.description.isEmpty
? "Keine Beschreibung"
: team.description;
return Card(
margin: const EdgeInsets.only(bottom: 12),
@@ -93,9 +94,10 @@ class MyTeamsWidget extends StatelessWidget {
if (confirmed == true && context.mounted) {
try {
await Provider.of<TeamProvider>(context, listen: false).leaveTeam(
team.id,
);
await Provider.of<TeamProvider>(
context,
listen: false,
).leaveTeam(team.id);
if (context.mounted) {
ScaffoldMessenger.of(
context,