mod: 更新播放器底栏配置
This commit is contained in:
@ -21,6 +21,7 @@ import 'package:pilipala/utils/video_utils.dart';
|
||||
import 'package:screen_brightness/screen_brightness.dart';
|
||||
|
||||
import '../../../http/danmaku.dart';
|
||||
import '../../../plugin/pl_player/models/bottom_control_type.dart';
|
||||
import '../../../utils/id_utils.dart';
|
||||
import 'widgets/header_control.dart';
|
||||
|
||||
@ -94,6 +95,14 @@ class VideoDetailController extends GetxController
|
||||
|
||||
PersistentBottomSheetController? replyReplyBottomSheetCtr;
|
||||
late bool enableRelatedVideo;
|
||||
List subtitles = [];
|
||||
RxList<BottomControlType> bottomList = [
|
||||
BottomControlType.playOrPause,
|
||||
BottomControlType.time,
|
||||
BottomControlType.space,
|
||||
BottomControlType.fit,
|
||||
BottomControlType.fullscreen,
|
||||
].obs;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
|
||||
@ -24,6 +24,7 @@ import 'package:pilipala/plugin/pl_player/models/play_repeat.dart';
|
||||
import 'package:pilipala/services/service_locator.dart';
|
||||
import 'package:pilipala/utils/storage.dart';
|
||||
|
||||
import '../../../plugin/pl_player/models/bottom_control_type.dart';
|
||||
import '../../../services/shutdown_timer_service.dart';
|
||||
import 'widgets/app_bar.dart';
|
||||
|
||||
@ -298,6 +299,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
playerController: plPlayerController!,
|
||||
),
|
||||
),
|
||||
bottomList: vdCtr.bottomList,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user