Package app.futured.donut.compose.data

Types

DonutConfig
Link copied to clipboard
data class DonutConfig(gapAngleAnimationSpec: AnimationSpec<Float>, masterProgressAnimationSpec: AnimationSpec<Float>, gapWidthAnimationSpec: AnimationSpec<Float>, strokeWidthAnimationSpec: AnimationSpec<Float>, backgroundLineColorAnimationSpec: AnimationSpec<Color>, capAnimationSpec: AnimationSpec<Float>, sectionAmountAnimationSpec: AnimationSpec<Float>, sectionColorAnimationSpec: AnimationSpec<Color>)
Configuration class for DonutProgress animations.
DonutModel
Link copied to clipboard
data class DonutModel(cap: Float, masterProgress: Float, gapWidthDegrees: Float, gapAngleDegrees: Float, strokeWidth: Float, backgroundLineColor: Color, sections: List<DonutSection>)
Wrapper for all necessary data values used by DonutProgress to draw its content.
DonutSection
Link copied to clipboard
data class DonutSection(amount: Float, color: Color)
Data class representing the single section of the donut containing amount and color.