Billy Newman
08/09/2022, 5:11 PMRow {
Box(Modifier
.width(20.dp)
.height(IntrinsicSize.Min)
.background(Color.Black)
)
Column {
HorizontalPagerIndicator(
pagerState = pagerState,
modifier = Modifier
.align(Alignment.CenterHorizontally)
.padding(bottom = 16.dp),
)
HorizontalPager(
count = mapAnnotations.size,
state = pagerState,
contentPadding = PaddingValues(horizontal = 0.dp),
modifier = Modifier.fillMaxWidth(),
) { page ->
Column(
modifier = Modifier
.fillMaxWidth()
.weight(1f)
) {
}
}
}
}
However I am not seeing the Box with the black background. This is in a bottom sheet and if I set the height to fillMaxHeight() the height is much taller than the content.
Not sure why
.height(IntrinsicSize.Min)
is not workingLandry Norris
08/09/2022, 6:22 PMBilly Newman
08/09/2022, 6:41 PMAsking for intrinsic measurements of SubcomposeLayout layouts is not supported.
Tin Tran
08/10/2022, 4:21 AM