fix(recommend): 收窄拖动清屏范围并提升灵敏度
This commit is contained in:
1 parent
f5721592f7
commit
04f1f5a73f
4 files changed
+18
-4
No files matched your search
@@ -3,6 +3,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:video_player/video_player.dart';
|
||||
|
||||
@@ -18,11 +19,11 @@ import 'seek_progress_bar.dart';
|
||||
part 'home_feed_overlay_parts.dart';
|
||||
|
||||
const double _progressHeight = 2;
|
||||
const double _progressHitHeight = 28;
|
||||
const double _progressHitHeight = 32;
|
||||
const double _pageHorizontal = 14;
|
||||
const double _railRight = 8;
|
||||
const double _railGap = 12;
|
||||
const double _bottomInfoInset = 20;
|
||||
const double _bottomInfoInset = 32;
|
||||
const double _railBottomOffset = 60;
|
||||
const List<Shadow> _boostTextShadows = [
|
||||
Shadow(color: AppColors.shadow, blurRadius: 5, offset: Offset(0, 1)),
|
||||
|
||||
@@ -129,6 +129,7 @@ class _FeedProgressBarState extends State<_FeedProgressBar> {
|
||||
child: GestureDetector(
|
||||
key: const Key('home-feed-progress'),
|
||||
behavior: HitTestBehavior.opaque,
|
||||
dragStartBehavior: DragStartBehavior.down,
|
||||
onHorizontalDragStart: interactive
|
||||
? (details) => _startScrub(details.localPosition.dx / width)
|
||||
: null,
|
||||
|
||||
Reference in new issue
Block a user