CustomPlayerWidgets class
Defines custom UI components for the video player, allowing you to override default widgets like loading indicators, error placeholders, and control bar elements.
Use this class to personalize the look and behavior of the player without altering the core logic.
- Annotations
Constructors
-
CustomPlayerWidgets.new({Widget loadingWidget = const Center(child: CircularProgressIndicator()), Widget? errorPlaceholder, Widget? bottomControlsBar, List<
Widget> leadingBottomButtons = const [], List<Widget> trailingBottomButtons = const [], Widget? customSeekBar, Widget? customDurationDisplay, Widget? customRemainingTimeDisplay, ImageProvider<Object> ? thumbnail, BoxFit thumbnailFit = BoxFit.cover, List<CustomOverlayLayer> customOverlayLayers = const [], Widget fullscreenWrapper(BuildContext context, Widget child)?}) -
Creates a new instance of CustomPlayerWidgets with optional overrides
for all supported customizations.
const
Properties
- bottomControlsBar → Widget?
-
Widget used to replace the entire bottom control bar.
final
- customDurationDisplay → Widget?
-
Widget used to replace the default current time / total duration display.
final
-
customOverlayLayers
→ List<
CustomOverlayLayer> -
Widgets shown above the video content.
final
- customRemainingTimeDisplay → Widget?
-
Widget used to replace the default remaining time indicator.
final
- customSeekBar → Widget?
-
Widget used to replace the default seek bar / progress bar.
final
- errorPlaceholder → Widget?
-
Widget displayed when an error occurs during playback initialization or runtime.
final
- fullscreenWrapper → Widget Function(BuildContext context, Widget child)?
-
Optional wrapper applied only in fullscreen mode.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
leadingBottomButtons
→ List<
Widget> -
Widgets displayed on the left (leading) side of the bottom control bar.
final
- loadingWidget → Widget
-
Widget displayed while the video player is initializing or buffering.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
thumbnail
→ ImageProvider<
Object> ? -
Optional thumbnail image displayed before playback starts.
final
- thumbnailFit → BoxFit
-
Defines how the thumbnail is scaled inside its container.
final
-
trailingBottomButtons
→ List<
Widget> -
Widgets displayed on the right (trailing) side of the bottom control bar.
final
Methods
-
copyWith(
{Widget? loadingWidget, Widget? errorPlaceholder, Widget? bottomControlsBar, List< Widget> ? leadingBottomButtons, List<Widget> ? trailingBottomButtons, Widget? customSeekBar, Widget? customDurationDisplay, Widget? customRemainingTimeDisplay, ImageProvider<Object> ? thumbnail, BoxFit? thumbnailFit, List<CustomOverlayLayer> ? customOverlayLayers, Widget fullscreenWrapper(BuildContext context, Widget child)?}) → CustomPlayerWidgets - Returns a new CustomPlayerWidgets instance with the specified fields overridden.
-
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