mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: sheet高度未对齐
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'dart:ui';
|
||||
import 'dart:math';
|
||||
import 'package:PiliPalaX/utils/storage.dart';
|
||||
import 'package:crypto/crypto.dart';
|
||||
@@ -437,7 +438,15 @@ class Utils {
|
||||
double height = context.height.abs();
|
||||
double width = context.width.abs();
|
||||
if (height > width) {
|
||||
return height * 0.7;
|
||||
//return height * 0.7;
|
||||
double paddingTop = MediaQueryData.fromView(
|
||||
WidgetsBinding.instance.platformDispatcher.views.single)
|
||||
.padding
|
||||
.top;
|
||||
print("paddingTop");
|
||||
print(paddingTop);
|
||||
paddingTop += width * 9 / 16;
|
||||
return height - paddingTop;
|
||||
}
|
||||
//横屏状态
|
||||
return height;
|
||||
|
||||
Reference in New Issue
Block a user