mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 播放页横屏适配修复
This commit is contained in:
@@ -9,6 +9,7 @@ import 'package:crypto/crypto.dart';
|
||||
import 'package:device_info_plus/device_info_plus.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
@@ -327,6 +328,16 @@ class Utils {
|
||||
return '$formattedHours:$formattedMinutes';
|
||||
}
|
||||
|
||||
static double getSheetHeight(BuildContext context) {
|
||||
double height = context.height.abs();
|
||||
double width = context.width.abs();
|
||||
if (height > width) {
|
||||
return height * 0.7;
|
||||
}
|
||||
//横屏状态
|
||||
return height;
|
||||
}
|
||||
|
||||
static String appSign(
|
||||
Map<String, dynamic> params, String appkey, String appsec) {
|
||||
params['appkey'] = appkey;
|
||||
|
||||
Reference in New Issue
Block a user