fix(player): 恢复独立播放页双击点赞
This commit is contained in:
1 parent
b291044acc
commit
63296d2a92
8 files changed
+348
-145
No files matched your search
@@ -14,6 +14,7 @@ import '../../../l10n/app_localizations.dart';
|
||||
import 'player_center_toggle.dart';
|
||||
import 'interaction_rail.dart';
|
||||
import 'player_overlay_models.dart';
|
||||
import 'player_tap_gesture_region.dart';
|
||||
import 'seek_progress_bar.dart';
|
||||
|
||||
part 'player_overlay_parts.dart';
|
||||
@@ -56,16 +57,15 @@ class PlayerPlaybackOverlay extends StatelessWidget {
|
||||
child: Stack(
|
||||
children: [
|
||||
Positioned.fill(
|
||||
child: LayoutBuilder(
|
||||
builder: (context, constraints) => GestureDetector(
|
||||
key: const Key('player-video-tap'),
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: actions.onTogglePlay,
|
||||
onLongPressStart: (details) =>
|
||||
_handleLongPressStart(details, constraints.maxWidth),
|
||||
onLongPressEnd: (_) => actions.onBoostEnd(),
|
||||
onLongPressCancel: actions.onBoostEnd,
|
||||
),
|
||||
child: PlayerTapGestureRegion(
|
||||
gestureKey: const Key('player-video-tap'),
|
||||
episodeId: data.episode.id,
|
||||
enabled: !scrubbing,
|
||||
doubleTapEnabled: !data.locked,
|
||||
onSingleTap: actions.onTogglePlay,
|
||||
onDoubleTapLike: actions.onDoubleTapLike,
|
||||
onLongPressStart: _handleLongPressStart,
|
||||
onInteractionEnd: actions.onBoostEnd,
|
||||
),
|
||||
),
|
||||
_top(context),
|
||||
|
||||
Reference in new issue
Block a user