VideoStyle class
Video player custom style model
Constructors
-
VideoStyle({Widget? playIcon, Widget? pauseIcon, Widget? fullscreenIcon, Widget? forwardIcon, Widget? backwardIcon, TextStyle qualityStyle = const TextStyle(color: Colors.white), TextStyle qualityOptionStyle = const TextStyle(color: Colors.white), TextStyle? videoDurationStyle, TextStyle? videoSeekStyle, EdgeInsetsGeometry? videoDurationsPadding, EdgeInsets? progressIndicatorPadding, VideoProgressColors? progressIndicatorColors, bool? allowScrubbing, Color? playButtonIconColor, double? playButtonIconSize, double spaceBetweenBottomBarButtons = 8.0, Color? actionBarBgColor, EdgeInsetsGeometry? actionBarPadding, Color? qualityOptionsBgColor, EdgeInsetsGeometry? qualityOptionsMargin, EdgeInsetsGeometry? qualityOptionsPadding, BorderRadius? qualityOptionsRadius, double qualityButtonAndFullScrIcoSpace = 8.0, double? forwardAndBackwardBtSize, Color backwardIconColor = Colors.white, Color forwardIconColor = Colors.white, EdgeInsetsGeometry bottomBarPadding = const EdgeInsets.symmetric(horizontal: 16.0), Color? videoQualityBgColor, BorderRadiusGeometry? videoQualityRadius, EdgeInsetsGeometry? videoQualityPadding, double qualityOptionWidth = 90.0, double fullScreenIconSize = 30.0, Color fullScreenIconColor = Colors.white, bool showLiveDirectButton = false, String? liveDirectButtonText, TextStyle? liveDirectButtonTextStyle, Color liveDirectButtonColor = Colors.red, Color liveDirectButtonDisableColor = Colors.grey, double liveDirectButtonSize = 10, bool enableSystemOrientationsOverride = true, List<
DeviceOrientation> ? orientation}) -
Constructor
const
Properties
- actionBarBgColor → Color?
-
A custom background color for the action bar that contains the
fullscreen and the video quality buttons.
final
- actionBarPadding → EdgeInsetsGeometry?
-
A custom padding for the action bar that contains the
fullscreen and the video quality buttons.
final
- allowScrubbing → bool?
-
When true, the widget will detect touch input and try to seek the video
accordingly. The widget ignores such input when false.
final
- backwardIcon → Widget?
-
Custom backward icon for the backward button.
final
- backwardIconColor → Color
-
A custom color for the backward button. Default color is Colors.white.
final
- bottomBarPadding → EdgeInsetsGeometry
-
The padding around for the bottom bar. Default value is:
final
- enableSystemOrientationsOverride → bool
-
If set to true the package will init the default orientations for the app.
If you want to handle your app's orientations programmatically just set this property to false.
final
- forwardAndBackwardBtSize → double?
-
A custom size for the forward and backward buttons.
final
- forwardIcon → Widget?
-
Custom forward icon for the forward button.
final
- forwardIconColor → Color
-
A custom color for the forward button. Default color is Colors.white.
final
- fullscreenIcon → Widget?
-
Custom fullscreen icon for fullscreen button.
final
- fullScreenIconColor → Color
-
Custom color for the fullscreen button. Default color is Colors.white.
final
- fullScreenIconSize → double
-
Custom size for the full screen button's icon. Default size is 30.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- liveDirectButtonColor → Color
-
A custom color for the live direct button. Default color is Colors.red.
final
- liveDirectButtonDisableColor → Color
-
A custom color for the live direct button. Default color is Colors.grey.
final
- liveDirectButtonSize → double
-
A custom size for the live direct button. The size button's size is 10 by default.
final
- liveDirectButtonText → String?
-
A custom display text for the live direct button.
final
- liveDirectButtonTextStyle → TextStyle?
-
A custom TextStyle for the text of live direct button.
final
-
orientation
→ List<
DeviceOrientation> ? -
Specifies the set of orientations the application interface can
be displayed in.
final
- pauseIcon → Widget?
-
Custom pause icon for play button.
final
- playButtonIconColor → Color?
-
A custom color for the play button's icon.
final
- playButtonIconSize → double?
-
A custom size for the play button's icon.
final
- playIcon → Widget?
-
Custom play icon for play button.
final
- progressIndicatorColors → VideoProgressColors?
-
The default colors used throughout the indicator.
final
- progressIndicatorPadding → EdgeInsets?
-
This allows for visual padding around the progress indicator that can
still detect gestures via allowScrubbing.
final
- qualityButtonAndFullScrIcoSpace → double
-
The space between the fullscreen and the video quality buttons. Default value is 8.0.
final
- qualityOptionsBgColor → Color?
-
A custom background color for the quality options popup.
final
- qualityOptionsMargin → EdgeInsetsGeometry?
-
A custom margin to change the display position for the quality options popup.
final
- qualityOptionsPadding → EdgeInsetsGeometry?
-
A custom padding around the video quality option text.
final
- qualityOptionsRadius → BorderRadius?
-
A custom border radius for the quality options popup.
final
- qualityOptionStyle → TextStyle
-
A custom TextStyle for the supported quality options in the dropdown popup. Default style is:
final
- qualityOptionWidth → double
-
The width for each item inside the video options popup. Default width is 90.0.
final
- qualityStyle → TextStyle
-
Custom TextStyle for the video quality text. Default style is:
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLiveDirectButton → bool
-
If set to true, the direct button that use for a live stream video will be appeared and vice versa.
final
- spaceBetweenBottomBarButtons → double
-
The space between play, forward and backward buttons. Default value is 8.0.
final
- videoDurationsPadding → EdgeInsetsGeometry?
-
A custom padding for the video length values (current position and video's duration).
final
- videoDurationStyle → TextStyle?
-
A custom TextStyle for the video duration.
final
- videoQualityBgColor → Color?
-
A custom background color for the selected video quality widget.
final
- videoQualityPadding → EdgeInsetsGeometry?
-
The padding around for the selected video quality text.
final
- videoQualityRadius → BorderRadiusGeometry?
-
A custom border radius for the selected video quality widget.
final
- videoSeekStyle → TextStyle?
-
A custom TextStyle for the video current position.
final
Methods
-
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.
inherited