Package app.futured.donut.compose.data

Types

DonutConfig
Link copied to clipboard
@Model()
data class DonutConfig(isGapAngleAnimationEnabled: Boolean, gapAngleAnimationBuilder: AnimationBuilder<Float>, isMasterProgressAnimationEnabled: Boolean, masterProgressAnimationBuilder: AnimationBuilder<Float>, isGapWidthAnimationEnabled: Boolean, gapWidthAnimationBuilder: AnimationBuilder<Float>, isStrokeWidthAnimationEnabled: Boolean, strokeWidthAnimationBuilder: AnimationBuilder<Float>, isBackgroundLineColorAnimationEnabled: Boolean, backgroundLineColorAnimationBuilder: AnimationBuilder<Color>, isCapAnimationEnabled: Boolean, capAnimationBuilder: AnimationBuilder<Float>, isSectionAmountAnimationEnabled: Boolean, sectionAmountAnimationBuilder: AnimationBuilder<Float>, isSectionColorAnimationEnabled: Boolean, sectionColorAnimationBuilder: AnimationBuilder<Color>)
Configuration class for DonutProgress
DonutModel
Link copied to clipboard
@Model()
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
@Model()
data class DonutSection(amount: Float, color: Color)
Data class representing the single section of the donut containing amount and color.