From 840395bb695fddae45c7cb5ff63e88653e97fda6 Mon Sep 17 00:00:00 2001 From: Flummi Date: Sat, 21 Jun 2025 16:48:28 +0200 Subject: [PATCH] v1.4.3+64 --- lib/widgets/video_controls_overlay.dart | 11 ++++++----- pubspec.yaml | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/widgets/video_controls_overlay.dart b/lib/widgets/video_controls_overlay.dart index ac3f473..6cbc47d 100644 --- a/lib/widgets/video_controls_overlay.dart +++ b/lib/widgets/video_controls_overlay.dart @@ -34,20 +34,21 @@ class _VideoControlsOverlayState extends State { } void _handleDoubleTap(TapDownDetails details) { - final screenWidth = MediaQuery.of(context).size.width; - final isRewind = details.globalPosition.dx < screenWidth / 2; + final double screenWidth = MediaQuery.of(context).size.width; + final bool isRewind = details.globalPosition.dx < screenWidth / 2; + widget.onOverlayTap(); Future(() { if (isRewind) { - final newPosition = + final Duration newPosition = widget.controller.value.position - const Duration(seconds: 10); widget.controller.seekTo( newPosition < Duration.zero ? Duration.zero : newPosition, ); } else { - final newPosition = + final Duration newPosition = widget.controller.value.position + const Duration(seconds: 10); - final duration = widget.controller.value.duration; + final Duration duration = widget.controller.value.duration; widget.controller.seekTo( newPosition > duration ? duration : newPosition, ); diff --git a/pubspec.yaml b/pubspec.yaml index 060c2eb..8fbb70f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.4.2+63 +version: 1.4.3+64 environment: sdk: ^3.9.0-100.2.beta