Merge branch 'fix'
This commit is contained in:
@ -514,6 +514,13 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
showEposideCb: () => vdCtr.videoType == SearchType.video
|
showEposideCb: () => vdCtr.videoType == SearchType.video
|
||||||
? videoIntroController.showEposideHandler()
|
? videoIntroController.showEposideHandler()
|
||||||
: bangumiIntroController.showEposideHandler(),
|
: bangumiIntroController.showEposideHandler(),
|
||||||
|
fullScreenCb: (bool status) {
|
||||||
|
if (status) {
|
||||||
|
videoHeight.value = Get.size.height;
|
||||||
|
} else {
|
||||||
|
videoHeight.value = defaultVideoHeight;
|
||||||
|
}
|
||||||
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@ -39,6 +39,7 @@ class PLVideoPlayer extends StatefulWidget {
|
|||||||
this.customWidget,
|
this.customWidget,
|
||||||
this.customWidgets,
|
this.customWidgets,
|
||||||
this.showEposideCb,
|
this.showEposideCb,
|
||||||
|
this.fullScreenCb,
|
||||||
super.key,
|
super.key,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -52,6 +53,7 @@ class PLVideoPlayer extends StatefulWidget {
|
|||||||
final Widget? customWidget;
|
final Widget? customWidget;
|
||||||
final List<Widget>? customWidgets;
|
final List<Widget>? customWidgets;
|
||||||
final Function? showEposideCb;
|
final Function? showEposideCb;
|
||||||
|
final Function? fullScreenCb;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<PLVideoPlayer> createState() => _PLVideoPlayerState();
|
State<PLVideoPlayer> createState() => _PLVideoPlayerState();
|
||||||
@ -335,7 +337,10 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
fuc: () => _.triggerFullScreen(status: !_.isFullScreen.value),
|
fuc: () {
|
||||||
|
_.triggerFullScreen(status: !_.isFullScreen.value);
|
||||||
|
widget.fullScreenCb?.call(!_.isFullScreen.value);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
final List<Widget> list = [];
|
final List<Widget> list = [];
|
||||||
@ -940,7 +945,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
begin: 0.0,
|
begin: 0.0,
|
||||||
end: _hideSeekBackwardButton.value ? 0.0 : 1.0,
|
end: _hideSeekBackwardButton.value ? 0.0 : 1.0,
|
||||||
),
|
),
|
||||||
duration: const Duration(milliseconds: 200),
|
duration: const Duration(milliseconds: 150),
|
||||||
builder: (BuildContext context, double value,
|
builder: (BuildContext context, double value,
|
||||||
Widget? child) =>
|
Widget? child) =>
|
||||||
Opacity(
|
Opacity(
|
||||||
@ -983,7 +988,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
begin: 0.0,
|
begin: 0.0,
|
||||||
end: _hideSeekForwardButton.value ? 0.0 : 1.0,
|
end: _hideSeekForwardButton.value ? 0.0 : 1.0,
|
||||||
),
|
),
|
||||||
duration: const Duration(milliseconds: 200),
|
duration: const Duration(milliseconds: 150),
|
||||||
builder: (BuildContext context, double value,
|
builder: (BuildContext context, double value,
|
||||||
Widget? child) =>
|
Widget? child) =>
|
||||||
Opacity(
|
Opacity(
|
||||||
|
|||||||
@ -30,14 +30,14 @@ class BackwardSeekIndicatorState extends State<BackwardSeekIndicator> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
timer = Timer(const Duration(milliseconds: 400), () {
|
timer = Timer(const Duration(milliseconds: 200), () {
|
||||||
widget.onSubmitted.call(value);
|
widget.onSubmitted.call(value);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void increment() {
|
void increment() {
|
||||||
timer?.cancel();
|
timer?.cancel();
|
||||||
timer = Timer(const Duration(milliseconds: 400), () {
|
timer = Timer(const Duration(milliseconds: 200), () {
|
||||||
widget.onSubmitted.call(value);
|
widget.onSubmitted.call(value);
|
||||||
});
|
});
|
||||||
widget.onChanged.call(value);
|
widget.onChanged.call(value);
|
||||||
|
|||||||
@ -30,14 +30,14 @@ class ForwardSeekIndicatorState extends State<ForwardSeekIndicator> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
timer = Timer(const Duration(milliseconds: 400), () {
|
timer = Timer(const Duration(milliseconds: 200), () {
|
||||||
widget.onSubmitted.call(value);
|
widget.onSubmitted.call(value);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void increment() {
|
void increment() {
|
||||||
timer?.cancel();
|
timer?.cancel();
|
||||||
timer = Timer(const Duration(milliseconds: 400), () {
|
timer = Timer(const Duration(milliseconds: 200), () {
|
||||||
widget.onSubmitted.call(value);
|
widget.onSubmitted.call(value);
|
||||||
});
|
});
|
||||||
widget.onChanged.call(value);
|
widget.onChanged.call(value);
|
||||||
|
|||||||
Reference in New Issue
Block a user