CircularProgressbar

fun CircularProgressbar(size: Dp = 45.dp, icon: ImageVector, number: Float = 5.0f, maxNumber: Float = 10.0f, enabled: Boolean = true, animationDelay: Int = 0, animationDuration: Int = 1000, indicatorThickness: Dp = 10.dp, circularProgressCustom: CircularProgressCustom = CircularProgressCustom(), onClick: (MutableState<Float>, Float) -> Unit = { _, _ -> })

LinearProgressbar

Parameters

size

Dp size of the CircularProgressBar

icon

ImageVector the value we want in case the Bitmap is null, by default it will be an empty one

enabled

Boolean Enables or disables the content, showing a colour, indicating that it is not active

number

Float The current progress number

maxNumber

Float The maximum amount of progress that can be achieved

indicatorThickness

Dp Progress bar height

circularProgressCustom

CircularProgressCustom Progress bar elements and icon customisations

animationDuration

Int Duration of the initial animation

animationDelay

Int Time delay in the initial animation duration


fun CircularProgressbar(icon: Painter, size: Dp = 45.dp, number: Float = 5.0f, maxNumber: Float = 10.0f, enabled: Boolean = true, animationDelay: Int = 0, animationDuration: Int = 1000, indicatorThickness: Dp = 10.dp, circularProgressCustom: CircularProgressCustom = CircularProgressCustom(), onClick: (MutableState<Float>, Float) -> Unit = { _, _ -> })

LinearProgressbar

Parameters

size

Dp size of the CircularProgressBar

icon

Painter the value we want in case the Bitmap is null, by default it will be an empty one

enabled

Boolean Enables or disables the content, showing a colour, indicating that it is not active

number

Float The current progress number

maxNumber

Float The maximum amount of progress that can be achieved

indicatorThickness

Dp Progress bar height

circularProgressCustom

CircularProgressCustom Progress bar elements and icon customisations

animationDuration

Int Duration of the initial animation

animationDelay

Int Time delay in the initial animation duration