Alperen
02/12/2024, 8:53 AMJoel Denke
02/12/2024, 9:06 AMAlperen
02/12/2024, 11:24 AMJoel Denke
02/12/2024, 1:07 PMZach Klippenstein (he/him) [MOD]
02/12/2024, 6:16 PMModifier.wrapContentHeight(unbounded=true)
on the image to get thisAlperen
02/13/2024, 8:07 AM@Composable
fun WrapContentHeightSolution() {
// Unfinished
Card(
modifier =
Modifier
._padding_(start = 20._dp_, end = 20._dp_, top = 4._dp_, bottom = 12._dp_)
._fillMaxWidth_(),
) *{*
Row(
modifier =
Modifier
._graphicsLayer_ *{* clip = true *}*,
) *{*
Column(
modifier =
Modifier
._weight_(1f)
._padding_(start = 16._dp_, end = 12._dp_, top = 16._dp_, bottom = 16._dp_)
._align_(Alignment.CenterVertically),
) *{*
HeaderText()
BodyText()
}
Image(
painter = painterResource(R.drawable._image_),
contentDescription = null,
contentScale = ContentScale.FillBounds,
modifier =
Modifier
._width_(100._dp_)
._wrapContentHeight_(unbounded = true, align = Alignment.CenterVertically),
)
}
}
}
Alperen
02/13/2024, 8:25 AMZach Klippenstein (he/him) [MOD]
02/13/2024, 3:03 PM