Last active
January 14, 2024 14:05
-
-
Save krzdabrowski/f8e60ba50d806052fa366f114f0e262b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const val ROCKET_DIVIDER_TEST_TAG = "rocketDividerTestTag" | |
@Composable | |
fun RocketsListContent( | |
rocketList: List<RocketDisplayable>, | |
(...) | |
) { | |
LazyColumn(...) { | |
itemsIndexed( | |
items = rocketList, | |
key = { _, rocket -> rocket.id } | |
) { index, item -> | |
RocketItem( | |
rocket = item, | |
(...) | |
) | |
if (index < rocketList.lastIndex) { | |
HorizontalDivider( | |
modifier = Modifier.testTag(ROCKET_DIVIDER_TEST_TAG) | |
) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment