mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-05 02:00:13 +08:00
fix: video minScale
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -2122,8 +2122,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
onTap: videoIntroController.actionLikeVideo,
|
onTap: videoIntroController.actionLikeVideo,
|
||||||
onLongPress: () {
|
onLongPress: () {
|
||||||
videoIntroController.actionOneThree();
|
videoIntroController.actionOneThree();
|
||||||
plPlayerController.isSliderMoving.value =
|
plPlayerController.isTriple = null;
|
||||||
false;
|
|
||||||
plPlayerController.hideTaskControls();
|
plPlayerController.hideTaskControls();
|
||||||
},
|
},
|
||||||
selectStatus:
|
selectStatus:
|
||||||
@@ -2137,8 +2136,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
callBack: (start) {
|
callBack: (start) {
|
||||||
if (start) {
|
if (start) {
|
||||||
HapticFeedback.lightImpact();
|
HapticFeedback.lightImpact();
|
||||||
plPlayerController.isSliderMoving.value =
|
plPlayerController.isTriple = true;
|
||||||
true;
|
|
||||||
_coinKey.currentState?.controller
|
_coinKey.currentState?.controller
|
||||||
?.forward();
|
?.forward();
|
||||||
_favKey.currentState?.controller?.forward();
|
_favKey.currentState?.controller?.forward();
|
||||||
@@ -2146,8 +2144,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
_coinKey.currentState?.controller
|
_coinKey.currentState?.controller
|
||||||
?.reverse();
|
?.reverse();
|
||||||
_favKey.currentState?.controller?.reverse();
|
_favKey.currentState?.controller?.reverse();
|
||||||
plPlayerController.isSliderMoving.value =
|
plPlayerController.isTriple = null;
|
||||||
false;
|
|
||||||
plPlayerController.hideTaskControls();
|
plPlayerController.hideTaskControls();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2246,8 +2243,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
onTap: bangumiIntroController.actionLikeVideo,
|
onTap: bangumiIntroController.actionLikeVideo,
|
||||||
onLongPress: () {
|
onLongPress: () {
|
||||||
bangumiIntroController.actionOneThree();
|
bangumiIntroController.actionOneThree();
|
||||||
plPlayerController.isSliderMoving.value =
|
plPlayerController.isTriple = null;
|
||||||
false;
|
|
||||||
plPlayerController.hideTaskControls();
|
plPlayerController.hideTaskControls();
|
||||||
},
|
},
|
||||||
selectStatus:
|
selectStatus:
|
||||||
@@ -2261,8 +2257,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
callBack: (start) {
|
callBack: (start) {
|
||||||
if (start) {
|
if (start) {
|
||||||
HapticFeedback.lightImpact();
|
HapticFeedback.lightImpact();
|
||||||
plPlayerController.isSliderMoving.value =
|
plPlayerController.isTriple = true;
|
||||||
true;
|
|
||||||
_coinKey.currentState?.controller
|
_coinKey.currentState?.controller
|
||||||
?.forward();
|
?.forward();
|
||||||
_favKey.currentState?.controller?.forward();
|
_favKey.currentState?.controller?.forward();
|
||||||
@@ -2270,8 +2265,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
_coinKey.currentState?.controller
|
_coinKey.currentState?.controller
|
||||||
?.reverse();
|
?.reverse();
|
||||||
_favKey.currentState?.controller?.reverse();
|
_favKey.currentState?.controller?.reverse();
|
||||||
plPlayerController.isSliderMoving.value =
|
plPlayerController.isTriple = null;
|
||||||
false;
|
|
||||||
plPlayerController.hideTaskControls();
|
plPlayerController.hideTaskControls();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2305,7 +2299,10 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
() => ActionItem(
|
() => ActionItem(
|
||||||
key: _favKey,
|
key: _favKey,
|
||||||
expand: false,
|
expand: false,
|
||||||
icon: const Icon(FontAwesomeIcons.star),
|
icon: const Icon(
|
||||||
|
FontAwesomeIcons.star,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
selectIcon:
|
selectIcon:
|
||||||
const Icon(FontAwesomeIcons.solidStar),
|
const Icon(FontAwesomeIcons.solidStar),
|
||||||
onTap: () => bangumiIntroController
|
onTap: () => bangumiIntroController
|
||||||
|
|||||||
@@ -1131,6 +1131,8 @@ class PlPlayerController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool? isTriple;
|
||||||
|
|
||||||
/// 隐藏控制条
|
/// 隐藏控制条
|
||||||
void hideTaskControls() {
|
void hideTaskControls() {
|
||||||
if (_timer != null) {
|
if (_timer != null) {
|
||||||
@@ -1138,7 +1140,7 @@ class PlPlayerController {
|
|||||||
}
|
}
|
||||||
Duration waitingTime = Duration(seconds: enableLongShowControl ? 30 : 3);
|
Duration waitingTime = Duration(seconds: enableLongShowControl ? 30 : 3);
|
||||||
_timer = Timer(waitingTime, () {
|
_timer = Timer(waitingTime, () {
|
||||||
if (!isSliderMoving.value) {
|
if (!isSliderMoving.value && isTriple != true) {
|
||||||
controls = false;
|
controls = false;
|
||||||
}
|
}
|
||||||
_timer = null;
|
_timer = null;
|
||||||
|
|||||||
@@ -701,6 +701,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
scaleEnabled: !plPlayerController.controlsLock.value, // 启用缩放
|
scaleEnabled: !plPlayerController.controlsLock.value, // 启用缩放
|
||||||
minScale: 0.75,
|
minScale: 0.75,
|
||||||
maxScale: 2.0,
|
maxScale: 2.0,
|
||||||
|
boundaryMargin: const EdgeInsets.all(double.infinity),
|
||||||
panAxis: PanAxis.aligned,
|
panAxis: PanAxis.aligned,
|
||||||
onInteractionStart: (ScaleStartDetails details) {
|
onInteractionStart: (ScaleStartDetails details) {
|
||||||
if (plPlayerController.controlsLock.value) return;
|
if (plPlayerController.controlsLock.value) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user