https://kotlinlang.org logo
#compose
Title
# compose
d

David Odari

12/17/2021, 5:16 PM
Hello I'm currently on A.S Chipmunk Canary 6 and compose version 1.0.5. Any clues as to why the previews don't show when
@PreviewParameter
is used despite creating providers as specified here ?
c

Colton Idle

12/17/2021, 7:19 PM
TIL of @PreviewParameter How'd I miss that?
d

David Odari

12/17/2021, 8:29 PM
Well we learn a little something about compose everyday, decided to open an issue for it on the issue tracker https://issuetracker.google.com/u/1/issues/211012768
c

Chris Sinco [G]

12/18/2021, 2:45 AM
Hmm I was not able to repro this. Can you attach the logs to the bug please since it looks like there's no error in the Preview panel?
Actually now I see it happening though at least with using Coil for image loading. I assume that is where your
rememberImagePainter
call is coming from? I couldn't replicate with the simple example from the documentation.
FYI I added my logs to your bug so thanks for reporting, since I am now seeing this on
1.1.0-beta04
🚀 1
d

David Odari

12/18/2021, 9:54 AM
Thanks Chris 👌
a

Albert Chang

12/18/2021, 11:30 AM
IIRC preview functions must be public to be shown.