UVideoControls constructor

const UVideoControls({
  1. required UMediaController controller,
  2. Key? key,
  3. bool visible = true,
  4. String? title,
  5. List<UVideoMarker> markers = const <UVideoMarker>[],
  6. Color? accentColor,
  7. bool showBack = false,
  8. bool showFullscreen = true,
  9. bool showPip = true,
  10. bool showSpeed = true,
  11. bool showQuality = true,
  12. bool showSubtitles = true,
  13. bool showQueue = false,
  14. bool showLock = true,
  15. bool showSeekButtons = true,
  16. bool showVolumeSlider = false,
  17. Duration seekStep = const Duration(seconds: 10),
  18. bool isFullscreen = false,
  19. bool locked = false,
  20. int notesCount = 0,
  21. List<Widget> topActions = const <Widget>[],
  22. VoidCallback? onBack,
  23. VoidCallback? onToggleFullscreen,
  24. VoidCallback? onToggleLock,
  25. VoidCallback? onOpenSettings,
  26. VoidCallback? onOpenQueue,
  27. VoidCallback? onAddNote,
  28. VoidCallback? onOpenNotes,
  29. VoidCallback? onDraw,
  30. VoidCallback? onScrubStart,
  31. VoidCallback? onScrubEnd,
  32. Widget thumbnailBuilder(
    1. BuildContext context,
    2. Duration position
    )?,
})

Implementation

const UVideoControls({
  required this.controller,
  super.key,
  this.visible = true,
  this.title,
  this.markers = const <UVideoMarker>[],
  this.accentColor,
  this.showBack = false,
  this.showFullscreen = true,
  this.showPip = true,
  this.showSpeed = true,
  this.showQuality = true,
  this.showSubtitles = true,
  this.showQueue = false,
  this.showLock = true,
  this.showSeekButtons = true,
  this.showVolumeSlider = false,
  this.seekStep = const Duration(seconds: 10),
  this.isFullscreen = false,
  this.locked = false,
  this.notesCount = 0,
  this.topActions = const <Widget>[],
  this.onBack,
  this.onToggleFullscreen,
  this.onToggleLock,
  this.onOpenSettings,
  this.onOpenQueue,
  this.onAddNote,
  this.onOpenNotes,
  this.onDraw,
  this.onScrubStart,
  this.onScrubEnd,
  this.thumbnailBuilder,
});