mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: more slide dismiss pages
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user