BarStyle.progress constructor
BarStyle.progress({})
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,
}) : this.width = double.infinity,
this.identifier = dot ?? Colors.white,
this.color = color ?? Color(0xFF295acc),
this.secondBackground = buffered ?? Colors.white.withOpacity(0.3),
this.background = background ?? Colors.white.withOpacity(0.2),
this.borderRadius = borderRadius ?? EdgeRadius.all(5.0),
this.identifierWidth = dotSize;