Status Update
Comments
st...@gmail.com <st...@gmail.com> #2
Hello,
Thank you for contacting the Google Cloud support team.
I have gone through your reported issue, however it seems like this is an issue observed specifically at your end within your project environment. It would need more specific debugging and analysis. To ensure a faster resolution and dedicated support for your issue, I kindly request you to file a support ticket by clicking
Please note that the Issue Tracker is primarily meant for reporting commonly observed issues and requesting new features. For individual support issues, it is best to utilize the support ticketing system. I'm going to close this issue which will no longer be monitored. If you have any additional issues or concerns, please don’t hesitate to create a new issue on the
Thank you, we appreciate your cooperation!
mn...@google.com <mn...@google.com>
di...@google.com <di...@google.com>
am...@google.com <am...@google.com>
am...@google.com <am...@google.com> #3
LoremIpsum
is now an open class, so you can override it similar to CollectionPreviewParameterProvider
class LoremIpsum20Words : LoremIpsum(20)
@Preview
@Composable
fun Preview(@PreviewParameter(LoremIpsum20Words::class) text: String) {
Text(text)
}
pr...@google.com <pr...@google.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.ui:ui-tooling:1.6.0-alpha08
androidx.compose.ui:ui-tooling-android:1.6.0-alpha08
androidx.compose.ui:ui-tooling-desktop:1.6.0-alpha08
androidx.compose.ui:ui-tooling-preview:1.6.0-alpha08
androidx.compose.ui:ui-tooling-preview-android:1.6.0-alpha08
androidx.compose.ui:ui-tooling-preview-desktop:1.6.0-alpha08
Description
Issue
LoremIpsum
doesn't seem to offer an option, to specify number of words. Sometimes you want to preview how specific composable behaves, when line breaks a single time.LoremIpsum
only offers "a truck load" amount of words.So basically, I would like to be able to preview text with only 20 words, instead of 500 (that's current default word count set in
LoremIpsum
).Example
I want to preview how following text breaks, but I don't want it to expand indefinitely.
Yes, I could limit it by height, but sometimes composables are more complicated than that.
Current workarounds
A. Only take first n characters
B. Manually instantiate LoremIpsum
Potential solutions
Maybe short version of
LoremIpsum
could solve this use case in a simple way? E.g.LoremIpsumShort
?Info