Center team avatar
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Prompts
|
||||
|
||||
Folgende Prompts wurden auf Englisch geschrieben.
|
||||
Folgende Prompts wurden auf Englisch geschrieben. Verwendetes Model: Claude Sonnet 4.5
|
||||
|
||||
## 11.03.2026
|
||||
|
||||
@@ -30,3 +30,8 @@ Folgende Dateien wurden in diesem Prompt verändert:
|
||||
- frontend_splatournament_manager/lib/pages/teams_page.dart (gelöscht)
|
||||
- frontend_splatournament_manager/lib/widgets/teams_list_widget.dart
|
||||
- frontend_splatournament_manager/lib/widgets/my_teams_widget.dart
|
||||
|
||||
- Center the team avatar vertically in the list views.<br><br>
|
||||
Folgende Dateien wurden in diesem Prompt verändert:
|
||||
- frontend_splatournament_manager/lib/widgets/teams_list_widget.dart
|
||||
- frontend_splatournament_manager/lib/widgets/my_teams_widget.dart
|
||||
|
||||
@@ -56,27 +56,17 @@ class _MyTeamsWidgetState extends State<MyTeamsWidget> {
|
||||
final memberCountText = team.memberCount != null
|
||||
? '${team.memberCount}/4 members'
|
||||
: 'No members';
|
||||
final description = team.description.isEmpty ? 'No description' : team.description;
|
||||
|
||||
return Card(
|
||||
margin: const EdgeInsets.only(bottom: 12),
|
||||
child: ListTile(
|
||||
leading: CircleAvatar(child: Text(team.tag)),
|
||||
title: Text(team.name),
|
||||
subtitle: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(team.description.isEmpty ? 'No description' : team.description),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
memberCountText,
|
||||
style: const TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w500,
|
||||
subtitle: Text(
|
||||
'$description\n$memberCountText',
|
||||
style: const TextStyle(fontSize: 14),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
isThreeLine: true,
|
||||
trailing: IconButton(
|
||||
icon: const Icon(Icons.logout, color: Colors.red),
|
||||
onPressed: () => _leaveTeam(team),
|
||||
|
||||
@@ -52,27 +52,17 @@ class TeamListItem extends StatelessWidget {
|
||||
final memberCountText = team.memberCount != null
|
||||
? '${team.memberCount}/4 members'
|
||||
: 'No members';
|
||||
final description = team.description.isEmpty ? 'No description' : team.description;
|
||||
|
||||
return Card(
|
||||
margin: const EdgeInsets.only(bottom: 12),
|
||||
child: ListTile(
|
||||
leading: CircleAvatar(child: Text(team.tag)),
|
||||
title: Text(team.name),
|
||||
subtitle: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(team.description.isEmpty ? 'No description' : team.description),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
memberCountText,
|
||||
style: const TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w500,
|
||||
subtitle: Text(
|
||||
'$description\n$memberCountText',
|
||||
style: const TextStyle(fontSize: 14),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
isThreeLine: true,
|
||||
trailing: PopupMenuButton(
|
||||
icon: const Icon(Icons.more_vert),
|
||||
itemBuilder: (context) => [
|
||||
|
||||
Reference in New Issue
Block a user