VideoViewerStyle constructor
VideoViewerStyle({
- ProgressBarStyle? progressBarStyle,
- PlayAndPauseWidgetStyle? playAndPauseStyle,
- SettingsMenuStyle? settingsStyle,
- ForwardAndRewindStyle? forwardAndRewindStyle,
- VolumeBarStyle? volumeBarStyle,
- SubtitleStyle? subtitleStyle,
- VideoViewerChatStyle? chatStyle,
- Widget? loading,
- Widget? buffering,
- TextStyle? textStyle,
- Widget? thumbnail,
- Widget? header,
- Duration transitions = const Duration(milliseconds: 400),
- Widget skipAdBuilder()?,
- 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);