Progress for LinearProgressIndicator and CircularProgressIndicator are now lambdas.
This commit is contained in:
parent
2a0209e14d
commit
250389633b
5 changed files with 15 additions and 13 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue