mod: more slide dismiss pages

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-04 20:35:01 +08:00
parent ef644d2837
commit 56c5ad360a
17 changed files with 1520 additions and 1519 deletions

View File

@@ -202,7 +202,7 @@ class Utils {
static void showFSSheet({
required Widget child,
required bool isFullScreen,
required Function isFullScreen,
double? padding,
}) {
Navigator.of(Get.context!).push(
@@ -212,15 +212,28 @@ class Utils {
? Column(
children: [
const Spacer(flex: 3),
Expanded(flex: 7, child: child),
if (isFullScreen && padding != null)
Expanded(
flex: 7,
child: MediaQuery.removePadding(
context: Get.context!,
removeTop: true,
child: child,
),
),
if (isFullScreen() && padding != null)
SizedBox(height: padding),
],
)
: Row(
children: [
const Spacer(),
Expanded(child: child),
Expanded(
child: MediaQuery.removePadding(
context: Get.context!,
removeLeft: true,
child: child,
),
),
],
);
},