Colton Idle
12/07/2021, 2:31 PMCard(
modifier = Modifier.padding(horizontal = 16.dp).fillMaxWidth().align(BottomCenter),
elevation = 8.dp) { //nothing }
When I add a HorizontalPager (replace where it says //nothing with the HP), then the card height becomes the size of the screen. Why and how do you make it only take up the height of the Text?
HorizontalPager(count = 10) { page ->
// Our page content
Text(text = "Page: $page", modifier = Modifier.fillMaxWidth())
}
Joseph Hawkes-Cates
12/07/2021, 2:54 PMJan BĂna
12/07/2021, 2:55 PMStylianos Gakis
12/07/2021, 3:02 PMv0.21.4-beta
so could you try that and say if it fixes it or not?Colton Idle
12/08/2021, 9:53 AM