fix(player): 独立全屏路由复用播放会话
This commit is contained in:
1 parent
23e80dd637
commit
9d2d3b97a1
4 files changed
+219
-103
No files matched your search
@@ -36,8 +36,6 @@ class PlayerPlaybackOverlay extends StatelessWidget {
|
||||
required this.actions,
|
||||
required this.controlsVisible,
|
||||
required this.scrubbing,
|
||||
this.onVerticalDragUpdate,
|
||||
this.onVerticalDragEnd,
|
||||
});
|
||||
|
||||
/// 展示数据。
|
||||
@@ -51,8 +49,6 @@ class PlayerPlaybackOverlay extends StatelessWidget {
|
||||
|
||||
/// 正在拖动进度条。拖动期间清屏,只留进度条。
|
||||
final bool scrubbing;
|
||||
final GestureDragUpdateCallback? onVerticalDragUpdate;
|
||||
final GestureDragEndCallback? onVerticalDragEnd;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -69,8 +65,6 @@ class PlayerPlaybackOverlay extends StatelessWidget {
|
||||
_handleLongPressStart(details, constraints.maxWidth),
|
||||
onLongPressEnd: (_) => actions.onBoostEnd(),
|
||||
onLongPressCancel: actions.onBoostEnd,
|
||||
onVerticalDragUpdate: onVerticalDragUpdate,
|
||||
onVerticalDragEnd: onVerticalDragEnd,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user