-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Rather counterintuitively, and annoyingly, KamelImage without a Modifier to restrict its size will consume all space it can get due to this default modifier:
Kamel/kamel-image/src/commonMain/kotlin/io/kamel/image/KamelImage.kt
Lines 45 to 54 in 291f157
| val onSuccess: @Composable (BoxScope.(Painter) -> Unit) = { painter -> | |
| Image( | |
| painter, | |
| contentDescription, | |
| Modifier.fillMaxSize(), | |
| alignment, | |
| contentScale, | |
| alpha, | |
| colorFilter | |
| ) |
This leads to it being the case that if you include any image in an unbounded box that the entire UI just becomes that image. For our usecase, we have a very wide banner image that is supposed to fill up the parent's entire width but not the height. This default prevents that from happening π
Can't we make the inner Image have no modifier?
wuujcik and JacobCube
Metadata
Metadata
Assignees
Labels
No labels