79588386

Date: 2025-04-23 10:34:54
Score: 1
Natty:
Report link

use placeholder, than label

your code:

    label = {Text(text = if (value.isEmpty()) stringResource(id = R.string.name" else "")}

wright code:

placeholder = {Text(text = if (value.isEmpty()) stringResource(id = R.string.name" else "")}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Имя Фамилия