fix(player): 完善进度预览清屏与下拉刷新
This commit is contained in:
1 parent
9b1afbdb36
commit
f8500bbaca
15 files changed
+949
-251
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// Author: fruit.com.cn
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:video_player/video_player.dart';
|
||||
|
||||
@@ -40,8 +41,8 @@ class PlayerOverlayData {
|
||||
/// 当前剧集。
|
||||
final Episode episode;
|
||||
|
||||
/// 当前播放器。
|
||||
final VideoPlayerController? controller;
|
||||
/// 当前播放器进度。
|
||||
final ValueListenable<VideoPlayerValue>? controller;
|
||||
|
||||
/// 是否已点赞。
|
||||
final bool liked;
|
||||
@@ -98,6 +99,7 @@ class PlayerOverlayActions {
|
||||
required this.onShare,
|
||||
required this.onMore,
|
||||
required this.onScrubStart,
|
||||
required this.onScrubEnd,
|
||||
required this.onSeek,
|
||||
required this.onLongPressCenter,
|
||||
required this.onBoostStart,
|
||||
@@ -143,6 +145,9 @@ class PlayerOverlayActions {
|
||||
/// 开始拖动进度。
|
||||
final VoidCallback? onScrubStart;
|
||||
|
||||
/// 结束拖动进度。
|
||||
final VoidCallback? onScrubEnd;
|
||||
|
||||
/// 提交进度跳转。
|
||||
final Future<void> Function(Duration)? onSeek;
|
||||
|
||||
|
||||
Reference in new issue
Block a user