v1.4.9+70
All checks were successful
Flutter Schmutter / build (push) Successful in 3m39s

This commit is contained in:
2025-06-24 14:19:41 +02:00
parent 93a89ba4b9
commit 5e8983e347
5 changed files with 252 additions and 223 deletions

View File

@ -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),
),
],
),