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