CustomPlayerWidgets constructor

const CustomPlayerWidgets({
  1. Widget loadingWidget = const Center(child: CircularProgressIndicator()),
  2. Widget? errorPlaceholder,
  3. Widget? bottomControlsBar,
  4. List<Widget> leadingBottomButtons = const [],
  5. List<Widget> trailingBottomButtons = const [],
  6. Widget? customSeekBar,
  7. Widget? customDurationDisplay,
  8. Widget? customRemainingTimeDisplay,
  9. ImageProvider<Object>? thumbnail,
  10. BoxFit thumbnailFit = BoxFit.cover,
  11. List<CustomOverlayLayer> customOverlayLayers = const [],
  12. Widget fullscreenWrapper(
    1. BuildContext context,
    2. Widget child
    )?,
})

Creates a new instance of CustomPlayerWidgets with optional overrides for all supported customizations.

Implementation

const CustomPlayerWidgets({
  this.loadingWidget = const Center(child: CircularProgressIndicator()),
  this.errorPlaceholder,
  this.bottomControlsBar,
  this.leadingBottomButtons = const [],
  this.trailingBottomButtons = const [],
  this.customSeekBar,
  this.customDurationDisplay,
  this.customRemainingTimeDisplay,
  this.thumbnail,
  this.thumbnailFit = BoxFit.cover,
  this.customOverlayLayers = const [],
  this.fullscreenWrapper,
});