Bug Description
When a description is provided, the title is rendered twice while the description is never displayed. The Text composable incorrectly uses title instead of description inside the description?.let { ... } block. This results in incorrect UI rendering for all picker items with descriptions.
Location
File: shared/src/commonMain/kotlin/com/multiplatformkickstarter/app/ui/components/Picker.kt
// Incorrect line:
description?.let {
Text(
text = title, // ← should be 'description'
style = Typography.get().bodyMedium,
modifier = Modifier.padding(start = 16.dp)
)
}
Fix
Replace text = title with text = description at this line.
Quickfix:
description?.let {
Text(
text = it,
style = Typography.get().bodyMedium,
modifier = Modifier.padding(start = 16.dp)
)
}
Note: This is a 1-line fix but affects correct UI rendering.
Bug Description
When a description is provided, the title is rendered twice while the description is never displayed. The Text composable incorrectly uses title instead of description inside the description?.let { ... } block. This results in incorrect UI rendering for all picker items with descriptions.
Location
File:
shared/src/commonMain/kotlin/com/multiplatformkickstarter/app/ui/components/Picker.ktFix
Replace
text = titlewithtext = descriptionat this line.Quickfix:
Note: This is a 1-line fix but affects correct UI rendering.