SpeedometerProgressBar

fun SpeedometerProgressBar(progress: () -> Float, title: String, color: ChartColor, progressIndicatorColor: ChartColor, trackColor: ChartColor, modifier: Modifier = Modifier, dotConfig: DotConfig = DotConfig.default(), titleTextConfig: TextConfig = TextConfig.default(), subTitleTextConfig: TextConfig = TextConfig.default(fontSize = 20.sp))

A composable function that displays a speedometer-style progress bar with an animated progress indicator.

Parameters

progress

A lambda function that returns the current progress as a float value between 0 and 1.

title

The title text to be displayed at the center of the speedometer.

color

The color of the progress arc.

progressIndicatorColor

The color of the progress indicator circle.

trackColor

The color of the track arc.

modifier

The modifier to be applied to the Box containing the speedometer.

dotConfig

Configuration for the dots displayed along the arc.

titleTextConfig

Configuration for the title text style.

subTitleTextConfig

Configuration for the subtitle text style.