fix: 播放页横屏适配修复

This commit is contained in:
orz12
2024-02-11 19:45:50 +08:00
parent 2ed7d00483
commit 0d1f73808f
16 changed files with 490 additions and 505 deletions

View File

@@ -20,7 +20,7 @@ class AiDetail extends StatelessWidget {
return Container(
color: Theme.of(context).colorScheme.background,
padding: const EdgeInsets.only(left: 14, right: 14),
height: context.height.abs() * 0.7,
height: Utils.getSheetHeight(context),
child: Column(
children: [
InkWell(

View File

@@ -1070,8 +1070,8 @@ class _HeaderControlState extends State<HeaderControl> {
<void>{
if (MediaQuery.of(context).orientation ==
Orientation.landscape &&
setting.get(SettingBoxKey.exitFullscreenAutoVertical,
defaultValue: true))
!setting.get(SettingBoxKey.horizontalScreen,
defaultValue: false))
{
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,