This commit is contained in:
@ -17,7 +17,6 @@ class VideoWidget extends StatefulWidget {
|
||||
final bool fullScreen;
|
||||
final VoidCallback? onInitialized;
|
||||
final Duration? initialPosition;
|
||||
final VoidCallback? onDoubleTap;
|
||||
|
||||
const VideoWidget({
|
||||
super.key,
|
||||
@ -26,7 +25,6 @@ class VideoWidget extends StatefulWidget {
|
||||
this.fullScreen = false,
|
||||
this.onInitialized,
|
||||
this.initialPosition,
|
||||
this.onDoubleTap,
|
||||
});
|
||||
|
||||
@override
|
||||
@ -58,7 +56,6 @@ class VideoWidgetState extends State<VideoWidget> {
|
||||
await videoController.initialize();
|
||||
if (!mounted) return;
|
||||
|
||||
// Rebuild the widget to reflect the initialized state
|
||||
setState(() {});
|
||||
|
||||
if (widget.initialPosition != null) {
|
||||
@ -133,10 +130,7 @@ class VideoWidgetState extends State<VideoWidget> {
|
||||
mediaContent,
|
||||
if (isInitialized)
|
||||
Positioned.fill(
|
||||
child: VideoControlsOverlay(
|
||||
controller: videoController,
|
||||
onDoubleTap: widget.onDoubleTap,
|
||||
),
|
||||
child: VideoControlsOverlay(controller: videoController),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
Reference in New Issue
Block a user