BarStyle.progress constructor

BarStyle.progress({
  1. double height = 5,
  2. double dotSize = 5,
  3. Color? dot,
  4. Color? color,
  5. Color? buffered,
  6. Color? background,
  7. BorderRadius? borderRadius,
})

The height of the progress bar. ** NOTE: ** The radius of the point is proportional to the height The color is the color of the current video progress in the progress bar

The dot is the color that the progress Dot will have

The background is the color of the progress bar

The buffered is the color of the amount of the damping video in the progress bar

The borderRadius of the border that will have the progress bar and the PreviewFrame

Implementation

BarStyle.progress({
  this.height = 5,
  double dotSize = 5,
  Color? dot,
  Color? color,
  Color? buffered,
  Color? background,
  BorderRadius? borderRadius,
})  : width = double.infinity,
      identifier = dot ?? Colors.white,
      color = color ?? const Color(0xFF295acc),
      secondBackground = buffered ?? Colors.white.withOpacity(0.3),
      background = background ?? Colors.white.withOpacity(0.2),
      borderRadius =
          borderRadius ?? const BorderRadius.all(Radius.circular(5)),
      identifierWidth = dotSize;