Fixed
Status Update
Comments
st...@gmail.com <st...@gmail.com> #2
Any update on this?
The request is DiffUtil implementation along with "items" and "indexedItems" functions to support DiffUtil and animations when adding/removing items. the same as the ListAdapter with DiffUtil.
The request is DiffUtil implementation along with "items" and "indexedItems" functions to support DiffUtil and animations when adding/removing items. the same as the ListAdapter with DiffUtil.
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
We are working on it, but nothing to share yet. Thanks
pr...@google.com <pr...@google.com> #4
Are we allowed to post potential workarounds on issue trackers?
I created this small POC repo, definitely not a solution and probably not ideal in the long run but works for my use case and thought I'd share:
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