CamoRating
A rating of value out of max, read-only when onChanged is null. label names it ("Quality").
API
- Kotlin
- Dart
public fun CamoRating(
value: Float,
label: String,
modifier: Modifier = Modifier,
onValueChange: ((Float) -> Unit)? = null,
max: Int = DEFAULT_MAX,
step: RatingStep = RatingStep.Whole,
size: RatingSize = RatingSize.Medium,
enabled: Boolean = true,
)
| Name | Type | Default |
|---|---|---|
value | Float | required |
label | String | required |
modifier | Modifier | Modifier |
onValueChange | ((Float) -> Unit)? | null |
max | Int | DEFAULT_MAX |
step | RatingStep | RatingStep.Whole |
size | RatingSize | RatingSize.Medium |
enabled | Boolean | true |
Design notes
Why CamoRating works this way, its states and its edge cases: contributor docs.