v1.4.3+64
All checks were successful
Flutter Schmutter / build (push) Successful in 3m33s

This commit is contained in:
2025-06-21 16:48:28 +02:00
parent 7a88c23e57
commit 840395bb69
2 changed files with 7 additions and 6 deletions

View File

@ -34,20 +34,21 @@ class _VideoControlsOverlayState extends State<VideoControlsOverlay> {
}
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,
);

View File

@ -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