Progress for LinearProgressIndicator and CircularProgressIndicator are now lambdas.

This commit is contained in:
Benoit Marty 2023-11-02 14:51:42 +01:00
parent 2a0209e14d
commit 250389633b
5 changed files with 15 additions and 13 deletions

View file

@ -217,7 +217,7 @@ private fun Content(
) {
LinearProgressIndicator(
modifier = Modifier.fillMaxWidth(),
progress = state.backupUploadState.backedUpCount.toFloat() / state.backupUploadState.totalCount.toFloat(),
progress = { state.backupUploadState.backedUpCount.toFloat() / state.backupUploadState.totalCount.toFloat() },
trackColor = ElementTheme.colors.progressIndicatorTrackColor,
)
Text(