ValueLabel

data class ValueLabel(val formatValue: (Float) -> String = { it.toInt().toString() + "%" }, val label: String) : CircularMeterContent(source)

Display a formatted value with a label below it, both centred in the ring.

ValueLabel

Parameters

formatValue

Converts the raw value to the display string (e.g. { "${it.toInt()}%" }).

label

Secondary label displayed below the value.

Constructors

Link copied to clipboard
constructor(formatValue: (Float) -> String = { it.toInt().toString() + "%" }, label: String)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun Content(value: Float, modifier: Modifier = Modifier)