Open nonproto opened 2 years ago
Once you get past 3/4 cards the size of later cards gets smaller and smaller. Here is an example I did the orientation horizontal because its even more noticeable but happens with both orientations.
val images = remember { mutableStateListOf( "https://mangadex.org/covers/a96676e5-8ae2-425e-b549-7f15dd34a6d8/dfcaab7a-2c3c-4ea5-8641-abffd2a95b5f.jpg", "https://mangadex.org/covers/a96676e5-8ae2-425e-b549-7f15dd34a6d8/512496fb-6e57-483f-9380-aa6027d4f157.jpg", "https://mangadex.org/covers/a96676e5-8ae2-425e-b549-7f15dd34a6d8/d9497f0d-3bd7-42d9-832c-696ff39a6a28.jpg", "https://mangadex.org/covers/a96676e5-8ae2-425e-b549-7f15dd34a6d8/bb38cabc-769b-4b6c-b7c1-dc3a933cd3c9.jpg", "https://mangadex.org/covers/a96676e5-8ae2-425e-b549-7f15dd34a6d8/e393ec1a-320d-4ef7-92de-ca84b0d20309.jpg", "https://mangadex.org/covers/a96676e5-8ae2-425e-b549-7f15dd34a6d8/17acc2b0-2cab-46f2-954d-91b1174db67e.jpg", "https://mangadex.org/covers/a96676e5-8ae2-425e-b549-7f15dd34a6d8/5a2e4c1d-696e-4983-ad9c-67eba37c0daa.jpg", "https://mangadex.org/covers/a96676e5-8ae2-425e-b549-7f15dd34a6d8/1b266184-eb7a-4801-9ad6-8f53ac8acb47.jpg", "https://mangadex.org/covers/a96676e5-8ae2-425e-b549-7f15dd34a6d8/67cc4435-16cc-4d32-8163-a82a681b826e.jpg", "https://mangadex.org/covers/a96676e5-8ae2-425e-b549-7f15dd34a6d8/8b4b0dec-d3f9-4471-be67-46ea386164a1.jpg", ) } Box( modifier = Modifier .fillMaxWidth() .fillMaxHeight(), ) { CardStack( cardContent = { AsyncImage( model = ImageRequest.Builder(LocalContext.current) .data(images[it]) .build(), contentDescription = null, contentScale = ContentScale.Fit, modifier = Modifier.clip( RoundedCornerShape(Shapes.coverRadius), ), ) }, cardCount = images.size, cardShape = RoundedCornerShape(Shapes.coverRadius), cardElevation = 4.dp, paddingBetweenCards = 4.dp, orientation = Orientation.Horizontal(alignment = HorizontalAlignment.StartToEnd, animationStyle = HorizontalAnimationStyle.FromTop), ) }
Thanks for the report! Will take a look at it.
Once you get past 3/4 cards the size of later cards gets smaller and smaller. Here is an example I did the orientation horizontal because its even more noticeable but happens with both orientations.