FancyProgressBar constructor

const FancyProgressBar({
  1. Key? key,
  2. double? value,
  3. Color? backgroundColor,
  4. double? minHeight,
  5. Color? color,
  6. BorderRadiusGeometry? borderRadius,
  7. bool showSparks = false,
  8. bool disableAnimation = false,
})

Creates a FancyProgressBar with optional determinate progress value (0.0 to 1.0).

  • If value is provided, renders a determinate progress bar animating to the specified value.
  • If value is null, displays an indeterminate animation with moving segments mimicking LinearProgressIndicator indeterminate mode.
  • backgroundColor sets the track color, defaulting to a scaled ArcaneTheme primary.
  • minHeight controls the bar thickness, scaled by ArcaneTheme.scaling.
  • color overrides the progress fill color from ArcaneTheme.primary.
  • borderRadius applies rounded corners, defaulting to zero.
  • showSparks enables a radial gradient spark effect at the progress end for visual flair.
  • disableAnimation skips 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,
});