Hey folks, I have an issue when the text is long. ...
# compose
a
Hey folks, I have an issue when the text is long. The text should stay next to the icon without any extra space, and the icon size should remain fixed.
Copy code
Row(
  Modifier
    .fillMaxSize()
    .background(Color.Gray)
) {
  Box {
    Text(
      text = state.name.localized,
      modifier = Modifier.width(Max),
      style = AlmanasaTheme.type.bodyLarge.regular,
      color = AlmanasaTheme.colors.onBackground,
      textAlign = TextAlign.Start,
      overflow = TextOverflow.Clip,
      maxLines = 1
    )
  }
  PremiumBadge(
    modifier = Modifier.size(60.dp)
  )
}
Please help me.