VideoProgressIndicator constructor

const VideoProgressIndicator(
  1. VideoPlayerController controller, {
  2. Key? key,
  3. VideoProgressColors colors = const VideoProgressColors(),
  4. required bool allowScrubbing,
  5. EdgeInsets padding = const EdgeInsets.only(top: 5.0),
})

Construct an instance that displays the play/buffering status of the video controlled by controller.

Defaults will be used for everything except controller if they're not provided. allowScrubbing defaults to false, and padding will default to top: 5.0.

Implementation

const VideoProgressIndicator(
  this.controller, {
  Key? key,
  this.colors = const VideoProgressColors(),
  required this.allowScrubbing,
  this.padding = const EdgeInsets.only(top: 5.0),
}) : super(key: key);