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:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
import 'dart:ui';
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
import 'package:PiliPalaX/utils/storage.dart';
|
import 'package:PiliPalaX/utils/storage.dart';
|
||||||
import 'package:crypto/crypto.dart';
|
import 'package:crypto/crypto.dart';
|
||||||
@@ -374,7 +375,7 @@ class Utils {
|
|||||||
child: Text(
|
child: Text(
|
||||||
'不再提醒',
|
'不再提醒',
|
||||||
style:
|
style:
|
||||||
TextStyle(color: Theme.of(context).colorScheme.outline),
|
TextStyle(color: Theme.of(context).colorScheme.outline),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
@@ -437,7 +438,15 @@ class Utils {
|
|||||||
double height = context.height.abs();
|
double height = context.height.abs();
|
||||||
double width = context.width.abs();
|
double width = context.width.abs();
|
||||||
if (height > width) {
|
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;
|
return height;
|
||||||
|
|||||||
Reference in New Issue
Block a user