mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: pip库-floating升级
This commit is contained in:
@@ -1206,7 +1206,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
},
|
||||
)),
|
||||
if (!isFullScreen ||
|
||||
MediaQuery.of(context).orientation != Orientation.portrait)
|
||||
MediaQuery.of(context).orientation != Orientation.portrait)
|
||||
SizedBox(
|
||||
width: 42,
|
||||
height: 34,
|
||||
@@ -1420,7 +1420,16 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
widget.videoDetailCtr!.data.dash!.video!.first.width!,
|
||||
widget.videoDetailCtr!.data.dash!.video!.first.height!,
|
||||
);
|
||||
await widget.floating!.enable(aspectRatio: aspectRatio);
|
||||
if (!context.mounted) return;
|
||||
await widget.floating!.enable(EnableManual(
|
||||
aspectRatio: aspectRatio,
|
||||
sourceRectHint: Rectangle<int>(
|
||||
0,
|
||||
0,
|
||||
context.width.toInt(),
|
||||
context.height.toInt(),
|
||||
),
|
||||
));
|
||||
} else {}
|
||||
},
|
||||
icon: const Icon(
|
||||
|
||||
Reference in New Issue
Block a user