mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-14 05:03:57 +08:00
@@ -34,7 +34,6 @@ import 'package:PiliPlus/utils/asset_utils.dart';
|
||||
import 'package:PiliPlus/utils/device_utils.dart';
|
||||
import 'package:PiliPlus/utils/extension/box_ext.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:PiliPlus/utils/feed_back.dart';
|
||||
import 'package:PiliPlus/utils/image_utils.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:PiliPlus/utils/path_utils.dart';
|
||||
@@ -324,9 +323,7 @@ class PlPlayerController with BlockConfigMixin {
|
||||
|
||||
late List<double> speedList = Pref.speedList;
|
||||
late bool enableAutoLongPressSpeed = Pref.enableAutoLongPressSpeed;
|
||||
late final showControlDuration = Pref.enableLongShowControl
|
||||
? const Duration(seconds: 30)
|
||||
: const Duration(seconds: 3);
|
||||
late final showControlDuration = const Duration(seconds: 3);
|
||||
// 字幕
|
||||
late double subtitleFontScale = Pref.subtitleFontScale;
|
||||
late double subtitleFontScaleFS = Pref.subtitleFontScaleFS;
|
||||
@@ -339,7 +336,6 @@ class PlPlayerController with BlockConfigMixin {
|
||||
|
||||
// settings
|
||||
late final showFSActionItem = Pref.showFSActionItem;
|
||||
late final enableShrinkVideoSize = Pref.enableShrinkVideoSize;
|
||||
late final darkVideoPage = Pref.darkVideoPage;
|
||||
late final enableSlideVolumeBrightness = Pref.enableSlideVolumeBrightness;
|
||||
late final enableSlideFS = Pref.enableSlideFS;
|
||||
@@ -1241,9 +1237,6 @@ class PlPlayerController with BlockConfigMixin {
|
||||
}
|
||||
|
||||
void onChangedSliderEnd() {
|
||||
if (cancelSeek != true) {
|
||||
feedBack();
|
||||
}
|
||||
cancelSeek = null;
|
||||
hasToast = null;
|
||||
isSliderMoving.value = false;
|
||||
@@ -1409,7 +1402,6 @@ class PlPlayerController with BlockConfigMixin {
|
||||
|
||||
/// 关闭控制栏
|
||||
void onLockControl(bool val) {
|
||||
feedBack();
|
||||
controlsLock.value = val;
|
||||
if (!val && showControls.value) {
|
||||
showControls.refresh();
|
||||
|
||||
@@ -67,7 +67,7 @@ import 'package:canvas_danmaku/canvas_danmaku.dart';
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:easy_debounce/easy_throttle.dart';
|
||||
import 'package:fl_chart/fl_chart.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/foundation.dart' show clampDouble, kDebugMode;
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/rendering.dart'
|
||||
@@ -2046,11 +2046,8 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
onInteractionUpdate: _onInteractionUpdate,
|
||||
onInteractionEnd: _onInteractionEnd,
|
||||
panEnabled: false,
|
||||
minScale: plPlayerController.enableShrinkVideoSize ? 0.75 : 1,
|
||||
minScale: 1.0,
|
||||
maxScale: 2.0,
|
||||
boundaryMargin: plPlayerController.enableShrinkVideoSize
|
||||
? const EdgeInsets.all(double.infinity)
|
||||
: EdgeInsets.zero,
|
||||
panAxis: PanAxis.aligned,
|
||||
transformationController: transformationController,
|
||||
onTranslate: () {
|
||||
|
||||
@@ -4,7 +4,6 @@ import 'package:PiliPlus/pages/video/controller.dart';
|
||||
import 'package:PiliPlus/plugin/pl_player/controller.dart';
|
||||
import 'package:PiliPlus/plugin/pl_player/view/view.dart';
|
||||
import 'package:PiliPlus/utils/extension/theme_ext.dart';
|
||||
import 'package:PiliPlus/utils/feed_back.dart';
|
||||
import 'package:PiliPlus/utils/platform_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -26,7 +25,6 @@ class BottomControl extends StatelessWidget {
|
||||
final VideoDetailController videoDetailController;
|
||||
|
||||
void onDragStart(ThumbDragDetails duration) {
|
||||
feedBack();
|
||||
controller.onChangedSliderStart(duration.timeStamp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user