mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-04 17:50:13 +08:00
opt: dynamicDetail/html page
Closes #60 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -434,8 +434,7 @@ class VideoIntroController extends GetxController
|
||||
),
|
||||
onTap: () {
|
||||
Get.back();
|
||||
Clipboard.setData(ClipboardData(text: videoUrl));
|
||||
SmartDialog.showToast('已复制');
|
||||
Utils.copyText(videoUrl);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
|
||||
@@ -1008,9 +1008,8 @@ class MorePanel extends StatelessWidget {
|
||||
}
|
||||
break;
|
||||
case 'copyAll':
|
||||
await Clipboard.setData(ClipboardData(text: message));
|
||||
SmartDialog.showToast('已复制');
|
||||
Get.back();
|
||||
Utils.copyText(message);
|
||||
break;
|
||||
case 'copyFreedom':
|
||||
Get.back();
|
||||
|
||||
@@ -1059,9 +1059,8 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
}
|
||||
break;
|
||||
case 'copyAll':
|
||||
await Clipboard.setData(ClipboardData(text: message));
|
||||
SmartDialog.showToast('已复制');
|
||||
Get.back();
|
||||
Utils.copyText(message);
|
||||
break;
|
||||
case 'copyFreedom':
|
||||
Get.back();
|
||||
|
||||
@@ -25,7 +25,6 @@ import 'package:PiliPalaX/utils/utils.dart';
|
||||
import 'package:auto_orientation/auto_orientation.dart';
|
||||
import 'package:easy_debounce/easy_throttle.dart';
|
||||
import 'package:floating/floating.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -164,15 +163,17 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
appbarStreamListen();
|
||||
// lifecycleListener();
|
||||
autoScreen();
|
||||
Utils.channel.setMethodCallHandler((call) async {
|
||||
if (call.method == 'onUserLeaveHint') {
|
||||
if (autoPiP &&
|
||||
plPlayerController?.playerStatus.status.value ==
|
||||
PlayerStatus.playing) {
|
||||
enterPip();
|
||||
if (Platform.isAndroid) {
|
||||
Utils.channel.setMethodCallHandler((call) async {
|
||||
if (call.method == 'onUserLeaveHint') {
|
||||
if (autoPiP &&
|
||||
plPlayerController?.playerStatus.status.value ==
|
||||
PlayerStatus.playing) {
|
||||
enterPip();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
// _animationController = AnimationController(
|
||||
// vsync: this,
|
||||
// duration: const Duration(milliseconds: 300),
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'dart:math';
|
||||
import 'package:PiliPalaX/pages/setting/widgets/switch_item.dart';
|
||||
import 'package:PiliPalaX/utils/extension.dart';
|
||||
import 'package:PiliPalaX/utils/id_utils.dart';
|
||||
import 'package:PiliPalaX/utils/utils.dart';
|
||||
import 'package:canvas_danmaku/canvas_danmaku.dart';
|
||||
import 'package:floating/floating.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -340,11 +341,9 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
subtitle: Text(
|
||||
'${player.state.width}x${player.state.height}'),
|
||||
onTap: () {
|
||||
Clipboard.setData(
|
||||
ClipboardData(
|
||||
text:
|
||||
"Resolution\n${player.state.width}x${player.state.height}",
|
||||
),
|
||||
Utils.copyText(
|
||||
'Resolution\n${player.state.width}x${player.state.height}',
|
||||
needToast: false,
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -355,11 +354,9 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
.state.videoParams
|
||||
.toString()),
|
||||
onTap: () {
|
||||
Clipboard.setData(
|
||||
ClipboardData(
|
||||
text:
|
||||
"VideoParams\n${player.state.videoParams}",
|
||||
),
|
||||
Utils.copyText(
|
||||
'VideoParams\n${player.state.videoParams}',
|
||||
needToast: false,
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -370,11 +367,9 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
.state.audioParams
|
||||
.toString()),
|
||||
onTap: () {
|
||||
Clipboard.setData(
|
||||
ClipboardData(
|
||||
text:
|
||||
"AudioParams\n${player.state.audioParams}",
|
||||
),
|
||||
Utils.copyText(
|
||||
'AudioParams\n${player.state.audioParams}',
|
||||
needToast: false,
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -384,11 +379,9 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
subtitle: Text(
|
||||
player.state.playlist.toString()),
|
||||
onTap: () {
|
||||
Clipboard.setData(
|
||||
ClipboardData(
|
||||
text:
|
||||
"Media\n${player.state.playlist}",
|
||||
),
|
||||
Utils.copyText(
|
||||
'Media\n${player.state.playlist}',
|
||||
needToast: false,
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -399,11 +392,9 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
.state.track.audio
|
||||
.toString()),
|
||||
onTap: () {
|
||||
Clipboard.setData(
|
||||
ClipboardData(
|
||||
text:
|
||||
"AudioTrack\n${player.state.track.audio}",
|
||||
),
|
||||
Utils.copyText(
|
||||
'AudioTrack\n${player.state.track.audio}',
|
||||
needToast: false,
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -414,11 +405,9 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
.state.track.video
|
||||
.toString()),
|
||||
onTap: () {
|
||||
Clipboard.setData(
|
||||
ClipboardData(
|
||||
text:
|
||||
"VideoTrack\n${player.state.track.audio}",
|
||||
),
|
||||
Utils.copyText(
|
||||
'VideoTrack\n${player.state.track.audio}',
|
||||
needToast: false,
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -428,11 +417,9 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
subtitle: Text(
|
||||
player.state.pitch.toString()),
|
||||
onTap: () {
|
||||
Clipboard.setData(
|
||||
ClipboardData(
|
||||
text:
|
||||
"pitch\n${player.state.pitch}",
|
||||
),
|
||||
Utils.copyText(
|
||||
'pitch\n${player.state.pitch}',
|
||||
needToast: false,
|
||||
);
|
||||
}),
|
||||
ListTile(
|
||||
@@ -441,11 +428,9 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
subtitle: Text(
|
||||
player.state.rate.toString()),
|
||||
onTap: () {
|
||||
Clipboard.setData(
|
||||
ClipboardData(
|
||||
text:
|
||||
"rate\n${player.state.rate}",
|
||||
),
|
||||
Utils.copyText(
|
||||
'rate\n${player.state.rate}',
|
||||
needToast: false,
|
||||
);
|
||||
}),
|
||||
ListTile(
|
||||
@@ -455,11 +440,9 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
.state.audioBitrate
|
||||
.toString()),
|
||||
onTap: () {
|
||||
Clipboard.setData(
|
||||
ClipboardData(
|
||||
text:
|
||||
"AudioBitrate\n${player.state.audioBitrate}",
|
||||
),
|
||||
Utils.copyText(
|
||||
'AudioBitrate\n${player.state.audioBitrate}',
|
||||
needToast: false,
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -469,11 +452,9 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
subtitle: Text(
|
||||
player.state.volume.toString()),
|
||||
onTap: () {
|
||||
Clipboard.setData(
|
||||
ClipboardData(
|
||||
text:
|
||||
"Volume\n${player.state.volume}",
|
||||
),
|
||||
Utils.copyText(
|
||||
'Volume\n${player.state.volume}',
|
||||
needToast: false,
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user