Join Slack
Powered by
The intrinsic size of images loaded from a file is...
# compose
r
Rob
12/09/2021, 7:15 PM
The intrinsic size of images loaded from a file is null which is causing a Image to have a height of 0. Is there a way to have the height of an
Image
match the aspect ratio of the image loaded?
Untitled.kt
Rob
12/09/2021, 7:22 PM
I see what's happening. If the height starts at zero the image is never loaded which never sets the intrinsic size 🤦
Rob
12/09/2021, 7:26 PM
This fixed it.
Untitled.kt
5
Views
Open in Slack
Previous
Next