Value

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

Display a formatted value text centred in the ring.

Value

Parameters

formatValue

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

Constructors

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

Properties

Link copied to clipboard

Functions

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