From 7ab6b9720fcea4640f605acada6bc5283d6c5e37 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Tue, 14 Apr 2026 04:24:39 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20increase=20subtitle=20sync=20slider=20r?= =?UTF-8?q?ange=20to=20=C2=B160s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #851 --- .../video_controls/widgets/sync_offset_control.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/widgets/video_controls/widgets/sync_offset_control.dart b/lib/widgets/video_controls/widgets/sync_offset_control.dart index a7e3bc62..7ecf0201 100644 --- a/lib/widgets/video_controls/widgets/sync_offset_control.dart +++ b/lib/widgets/video_controls/widgets/sync_offset_control.dart @@ -54,13 +54,13 @@ class SyncOffsetControl extends StatefulWidget { class _SyncOffsetControlState extends State { // Range constants - static const double _sliderMin = -5000; // ±5s for slider - static const double _sliderMax = 5000; + static const double _sliderMin = -60000; // ±60s for slider + static const double _sliderMax = 60000; static const double _absoluteMin = -60000; // ±60s absolute limit static const double _absoluteMax = 60000; static const double _tapStep = 100; // 100ms per tap static const double _longPressStep = 1000; // 1s per long-press tick - static const int _sliderDivisions = 200; // 50ms steps for ±5s range + static const int _sliderDivisions = 240; // 500ms steps for ±60s range late double _currentOffset; Timer? _longPressTimer; @@ -319,7 +319,7 @@ class _SyncOffsetControlState extends State { const SizedBox(width: 12), // Slider section Text( - t.videoControls.minusTime(amount: "5", unit: "s"), + t.videoControls.minusTime(amount: "60", unit: "s"), style: TextStyle(color: tokens(context).textMuted), ), Expanded( @@ -341,7 +341,7 @@ class _SyncOffsetControlState extends State { ), ), Text( - t.videoControls.addTime(amount: "5", unit: "s"), + t.videoControls.addTime(amount: "60", unit: "s"), style: TextStyle(color: tokens(context).textMuted), ), const SizedBox(width: 12),