Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

adjust the order of player buttons

Prediditdeda0b08a834
diff --git a/lib/pages/player/player_item.dart b/lib/pages/player/player_item.dart
index d9c6781d..ce9c7dff 100644
--- a/lib/pages/player/player_item.dart
+++ b/lib/pages/player/player_item.dart
@@ -917,13 +917,6 @@ class _PlayerItemState extends State<PlayerItem>
child: dtb.DragToMoveArea(
child: SizedBox(height: 40)),
),
- IconButton(
- color: Colors.white,
- icon: const Icon(Icons.cast),
- onPressed: () {
- RemotePlay().castVideo(context);
- },
- ),
TextButton(
style: ButtonStyle(
padding:
@@ -942,6 +935,13 @@ class _PlayerItemState extends State<PlayerItem>
),
),
),
+ IconButton(
+ color: Colors.white,
+ icon: const Icon(Icons.cast),
+ onPressed: () {
+ RemotePlay().castVideo(context);
+ },
+ ),
// 追番
IconButton(
icon: Icon(
diff --git a/lib/utils/remote.dart b/lib/utils/remote.dart
index 63bbc0d5..abd9b843 100644
--- a/lib/utils/remote.dart
+++ b/lib/utils/remote.dart
@@ -26,7 +26,9 @@ class RemotePlay {
final dlna = await searcher.start();
final String video = Modular.get<PlayerController>().videoUrl;
List<Widget> dlnaDevice = [];
- SmartDialog.show(builder: (context) {
+ SmartDialog.show(
+ useAnimation: false,
+ builder: (context) {
return StatefulBuilder(builder: (context, setState) {
return AlertDialog(
title: const Text('远程播放'),