Open dessalines opened 2 years ago
Any updates? People using my app are starting to complain about tiny picture sizes.
You can create a custom ImageLoader
to be used inside MarkdownText.
https://github.com/jeziellago/compose-markdown/blob/d0a4c4eb6fcfc87611b9f8cda598d0f581387f40/markdowntext/src/main/java/dev/jeziellago/compose/markdowntext/MarkdownText.kt#L47
Thanks! I'll try this out once you get #25 working again.
A custom coil image loader doesn't seem to have the options I need... specifically I need two things.
The ability to scale a picture, I'd like it to fill my item width. This is done in coil like:
AsyncImage(
model = ...
contentScale = ContentScale.FillWidth,
I'd also like the ability to get a callback when the image is clicked, so I can do an action with it (such as loading the URI in an external browser)
My users are just doing proper markdown images, ie ![imglink](url)
.
Can user like pinch to zoom image?
Is there a way to set the min / max height of rendered pictures? Almost all mine end of getting rendered very tiny.