LeadingContent
fun LeadingContent(pack: OfflinePack, completedIcon: @Composable () -> Unit = {
Icon(
imageVector = vectorResource(Res.drawable.check_circle_filled),
contentDescription = stringResource(Res.string.offline_pack_complete),
)
}, pausedIcon: @Composable () -> Unit = {
Icon(
imageVector = vectorResource(Res.drawable.pause_circle_filled),
contentDescription = stringResource(Res.string.offline_pack_paused),
)
}, downloadingIcon: @Composable () -> Unit = { DownloadProgressCircle(pack) }, errorIcon: @Composable () -> Unit = {
Icon(
imageVector = vectorResource(Res.drawable.error_filled),
contentDescription = stringResource(Res.string.offline_pack_error),
tint = MaterialTheme.colorScheme.error,
)
}, warningIcon: @Composable () -> Unit = {
Icon(
imageVector = vectorResource(Res.drawable.warning_filled),
contentDescription = stringResource(Res.string.offline_pack_warning),
)
})(source)
The default leading content for an OfflinePackListItem. It includes a CircularProgressIndicator for in-progress downloads, and otherwise an Icon representing the status of the pack.