@Composable fun AddressList( addresses: List<Address>, onAddressClick: (Address) -> Unit, onAddAddressButtonClick: () -> Unit, ) { LazyColumn { items(addresses) { address -> TextListItem( label = address.getFullName(), modifier = Modifier.padding(start = 56.dp), description = address.getAddressLabel(), maxDescriptionLines = 2, onClick = { onAddressClick(address) }, ) } item { IconListItem( label = stringResource(R.string.preferences_addresses_add_address), beforeIconPainter = painterResource(R.drawable.ic_new), onClick = onAddAddressButtonClick, ) } } }
A list of addresses.