VideoViewerStyle class
Constructors
- 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(Duration)?, 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
Properties
- buffering → Widget
-
It is the NotNull-Widget that appears when the video keeps loading the content
final
- chatStyle → VideoViewerChatStyle
-
final
- forwardAndRewindStyle → ForwardAndRewindStyle
-
With this argument change the icons that appear when double-tapping,
also the style of the container that indicates when the video will be rewind or forward.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- header → Widget?
-
It is the widget header shows on the top when you tap the video viewer and it shows the progress bar
final
- loading → Widget
-
It is the NotNull-Widget that appears when the video is loading.
final
- playAndPauseStyle → PlayAndPauseWidgetStyle
-
With this argument you will change the play and pause icons, also the style
of the circle that appears behind. Note: The play and pause icons are
the same ones that appear in the progress bar
final
- progressBarStyle → ProgressBarStyle
-
It is the style that will have all the icons and elements of the progress bar
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settingsStyle → SettingsMenuStyle
-
These are the styles of the settings sales, here you will change the icons and
the language of the texts
final
- skipAdAlignment → Alignment
-
final
- skipAdBuilder → Widget Function(Duration)?
-
final
- subtitleStyle → SubtitleStyle
-
final
- textStyle → TextStyle
-
It is the design of the text that will be used in all the texts of the VideoViwer
final
- thumbnail → Widget?
-
It is a thumbnail that appears when the video is loaded for the first time, once
given play or pressing on it will disappear.
final
- transitions → Duration
-
It is a quantity in milliseconds. It is the time it takes to take place
all transitions of the VideoViewer ui,
final
- volumeBarStyle → VolumeBarStyle
-
Only Android Support, this style is for Volume controller but at
only having android support will only show for that platform.
final
Methods
-
copyWith(
{SettingsMenuStyle? settingsStyle, VolumeBarStyle? volumeBarStyle, ProgressBarStyle? progressBarStyle, SubtitleStyle? subtitleStyle, ForwardAndRewindStyle? forwardAndRewindStyle, PlayAndPauseWidgetStyle? playAndPauseStyle, Widget? thumbnail, Widget? header, Widget? loading, Widget? buffering, Duration? transitions, TextStyle? textStyle, Widget skipAdBuilder(Duration)?, Alignment? skipAdAlignment, VideoViewerChatStyle? chatStyle}) → VideoViewerStyle -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override