fix: correct 'née' to 'né' and show position as trailing badge
- Fix French: 'née' → 'né' for player birth year - Move position (F/D/G) from supportingContent to trailingContent as an AssistChip badge (secondaryContainer), matching the number avatar style
This commit is contained in:
@@ -208,10 +208,26 @@ fun EventDetailScreen(
|
|||||||
Text("${player.fname} ${player.lname}")
|
Text("${player.fname} ${player.lname}")
|
||||||
},
|
},
|
||||||
supportingContent = {
|
supportingContent = {
|
||||||
val parts = mutableListOf<String>()
|
if (player.dob.isNotBlank()) {
|
||||||
if (!player.position.isNullOrBlank()) parts.add(player.position)
|
Text("(né ${player.dob.take(4)})")
|
||||||
if (player.dob.isNotBlank()) parts.add("(née ${player.dob.take(4)})")
|
}
|
||||||
if (parts.isNotEmpty()) Text(parts.joinToString(" "))
|
},
|
||||||
|
trailingContent = {
|
||||||
|
if (!player.position.isNullOrBlank()) {
|
||||||
|
AssistChip(
|
||||||
|
onClick = {},
|
||||||
|
label = {
|
||||||
|
Text(
|
||||||
|
player.position,
|
||||||
|
style = MaterialTheme.typography.labelMedium,
|
||||||
|
)
|
||||||
|
},
|
||||||
|
colors = AssistChipDefaults.assistChipColors(
|
||||||
|
containerColor = MaterialTheme.colorScheme.secondaryContainer,
|
||||||
|
labelColor = MaterialTheme.colorScheme.onSecondaryContainer,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user