Options class final
Constructors
-
Options({double? bottomActionsBarHeight, Color? bottomActionsBarColor, Color? bottomActionsBarBackgroundColor, Widget actionBuilder(BuildContext, VideoPlayerValue)?, double? height, List<
Widget> stackChildren(BuildContext, VideoPlayerValue)?, double? width, dynamic addReloadOptionWhenFailed(VideoPlayerController)?, String reloadTitle = "reload", bool autoInitialize = true, bool withPopIcon = false, bool applyOrientationsEnforcement = true, bool convexMirror = false, bool autoLoop = false, bool showTopVolumeController = true, bool autoPauseAfterDispose = true, bool showViewModes = false, bool showViewModesOnlyWithFullScreen = true, double bottomActionsBarSize = 28, double bigIconsSize = 35}) -
const
- Options.generate()
-
factory
Properties
- actionBuilder → Widget Function(BuildContext, VideoPlayerValue)?
-
set bottom Bar Actions Widgets
also you can set stack children widgets
final
- addReloadOptionWhenFailed → dynamic Function(VideoPlayerController)?
-
when file or stream failed to load data add reload button with sending new video player controller
final
- applyOrientationsEnforcement → bool
-
this option will force the view port and the Preferred Orientations to be the same as the video Orientations
final
- autoInitialize → bool
-
auto buffering the video
final
- autoLoop → bool
-
auto looping the video
final
- autoPauseAfterDispose → bool
-
when widget that hold sharara video player
dispose , the player controller will automatically pause the video
final
- bigIconsSize → double
-
set the Size of Big Icons
final
- bottomActionsBarBackgroundColor → Color?
-
set the color of bottom actions bar
final
- bottomActionsBarColor → Color?
-
set the color of bottom actions bar
final
- bottomActionsBarHeight → double?
-
sets the height of bottom actions bar
final
- bottomActionsBarSize → double
-
set the Size of bottom actions bar
final
- convexMirror → bool
-
do not change this critical for change the size of video player
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The Width And Height of Video Player Must Be Fit With Icons Size
final
-
you can call this function if you specified custom navigator in your app
final
- reloadTitle → String
-
just to fit the lang of your app
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showTopVolumeController → bool
-
if you want to hide the top volume controller
final
- showViewModes → bool
-
options about how to view video
final
- showViewModesOnlyWithFullScreen → bool
-
show view mode only when screen is full
final
-
stackChildren
→ List<
Widget> Function(BuildContext, VideoPlayerValue)? -
for building children widgets as stack with video player
final
- width → double?
-
The Width And Height of Video Player Must Be Fit With Icons Size
final
- withPopIcon → bool
-
build context popper icon button to get back
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