VideoViewerStyle constructor

VideoViewerStyle({
  1. ProgressBarStyle? progressBarStyle,
  2. PlayAndPauseWidgetStyle? playAndPauseStyle,
  3. SettingsMenuStyle? settingsStyle,
  4. ForwardAndRewindStyle? forwardAndRewindStyle,
  5. VolumeBarStyle? volumeBarStyle,
  6. SubtitleStyle? subtitleStyle,
  7. VideoViewerChatStyle? chatStyle,
  8. Widget? loading,
  9. Widget? buffering,
  10. TextStyle? textStyle,
  11. Widget? thumbnail,
  12. Widget? header,
  13. Duration transitions = const Duration(milliseconds: 400),
  14. Widget skipAdBuilder(
    1. Duration
    )?,
  15. Alignment skipAdAlignment = Alignment.bottomRight,
})

It is the main class of VideoViewer styles, in this class you can almost all styles and elements of the VideoViewer

Implementation

VideoViewerStyle({
  ProgressBarStyle? progressBarStyle,
  PlayAndPauseWidgetStyle? playAndPauseStyle,
  SettingsMenuStyle? settingsStyle,
  ForwardAndRewindStyle? forwardAndRewindStyle,
  VolumeBarStyle? volumeBarStyle,
  SubtitleStyle? subtitleStyle,
  VideoViewerChatStyle? chatStyle,
  Widget? loading,
  Widget? buffering,
  TextStyle? textStyle,
  this.thumbnail,
  this.header,
  this.transitions = const Duration(milliseconds: 400),
  this.skipAdBuilder,
  this.skipAdAlignment = Alignment.bottomRight,
})  : loading = loading ??
          Center(
            child: CircularProgressIndicator(
              strokeWidth: 1.6,
              valueColor: AlwaysStoppedAnimation<Color>(Colors.white),
            ),
          ),
      buffering = buffering ??
          Center(
            child: CircularProgressIndicator(
              strokeWidth: 1.6,
              valueColor: AlwaysStoppedAnimation<Color>(Colors.white),
            ),
          ),
      chatStyle = chatStyle ?? const VideoViewerChatStyle(),
      subtitleStyle = subtitleStyle ?? SubtitleStyle(),
      settingsStyle = settingsStyle ?? SettingsMenuStyle(),
      progressBarStyle = progressBarStyle ?? ProgressBarStyle(),
      volumeBarStyle = volumeBarStyle ?? VolumeBarStyle(),
      forwardAndRewindStyle = forwardAndRewindStyle ?? ForwardAndRewindStyle(),
      playAndPauseStyle = playAndPauseStyle ?? PlayAndPauseWidgetStyle(),
      textStyle = textStyle ?? TextStyle(color: Colors.white, fontSize: 12, fontWeight: FontWeight.bold);