CamoProgress
A linear progress indicator, as wide as its parent allows. progress == null is indeterminate (loading); a
value is clamped to 0f..1f (an upload at 40%). tone colors a failing upload; label names it ("Uploading
photo"). Value changes aren't announced as they happen: announce the milestones ("Upload complete").
API: CamoProgressBar
- Kotlin
- Dart
public fun CamoProgressBar(
modifier: Modifier = Modifier,
progress: Float? = null,
tone: Tone = Tone.Default,
label: String? = null,
)
| Name | Type | Default |
|---|---|---|
modifier | Modifier | Modifier |
progress | Float? | null |
tone | Tone | Tone.Default |
label | String? | null |
API: CamoProgressCircle
- Kotlin
- Dart
public fun CamoProgressCircle(
modifier: Modifier = Modifier,
progress: Float? = null,
tone: Tone = Tone.Default,
size: ProgressSize = ProgressSize.Medium,
label: String? = null,
)
| Name | Type | Default |
|---|---|---|
modifier | Modifier | Modifier |
progress | Float? | null |
tone | Tone | Tone.Default |
size | ProgressSize | ProgressSize.Medium |
label | String? | null |
Design notes
Why CamoProgress works this way, its states and its edge cases: contributor docs.