Description
When I have got a Text
with slashes (like a file path) as text that doesn't fit the current screen, in the Android version of compose the string gets cut partially and not the whole word. The Desktop version cuts the whole word instead until the slash.
Desktop: "FooBar" is not shown, just the ellipsis.
Android: "Foo" is shown + Ellipsis
Code sample:
MaterialTheme {
Text(
text = "/Path/To/A/Fantastic/Path/Named/FooBar",
overflow = TextOverflow.Ellipsis,
fontSize = 23.sp,
maxLines = 1,
)
}
TextOverflow.Clip
behaves in equally in both platform by cutting the whole word.