FancyProgressBar constructor
const
FancyProgressBar({})
Creates a FancyProgressBar with optional determinate progress value (0.0 to 1.0).
- If
valueis provided, renders a determinate progress bar animating to the specified value. - If
valueis null, displays an indeterminate animation with moving segments mimicking LinearProgressIndicator indeterminate mode. backgroundColorsets the track color, defaulting to a scaled ArcaneTheme primary.minHeightcontrols the bar thickness, scaled by ArcaneTheme.scaling.coloroverrides the progress fill color fromArcaneTheme.primary.borderRadiusapplies rounded corners, defaulting to zero.showSparksenables a radial gradient spark effect at the progress end for visual flair.disableAnimationskips animations for static display, useful in performance-critical UIs.
Implementation
const FancyProgressBar({
super.key,
this.value,
this.backgroundColor,
this.minHeight,
this.color,
this.borderRadius,
this.showSparks = false,
this.disableAnimation = false,
});