-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asking for intrinsic measurements of SubcomposeLayout layouts is not supported. #482
Comments
Hey @KwonDae, I believe you'll be able to resolve this issue by wrapping your Box(modifier = Modifier.size(56.dp)) {
GlideImage(..)
} |
Thanks @skydoves FlowRow(
modifier = modifier.fillMaxWidth(),
maxItemsInEachRow = 2,
) {
items.forEach {
ImageItem(
item = it,
modifier = Modifier.weight(0.5f)
)
}
} I use GlideImage within Modifier.weight |
Hi @KwonDae, you actually don't need to use LazyVerticalGrid(
modifier = Modifier.fillMaxWidth(),
columns = GridCells.Fixed(2)
) { |
Hi @skydoves, Thanks to you, I was able to solve the Issue. GlideImage render content within BoxWithConstraintsScope, |
Hey @KwonDae, Landscapist uses SizeResolver to request pre-computed image sizes before rendering. The reason for adopting BoxWithConstraints is to limit content sizes and support match-parent functionality. This is achieved by leveraging the properties of On the other hand, Landscapist offers other image libraries, such as Glide and Fresco, but they don't yet provide features similar to |
Thank you for the answers. |
Please complete the following information:
Describe the Bug:
I'm using as above structure.
When I use
GlideImage
insideTabRow
, the following error occurs,It is said that it does not support intrinsic measurements behavior inside components such as
TabRow
usingSubcomposeLayout
.Is it possible that the contents of the
ImageLoad
are usingBoxWithConstraintsScope
internally in the process of calling theImageLoad
function inprivate fun GlideImage
?The text was updated successfully, but these errors were encountered: