mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: slide padding
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:PiliPlus/utils/storage.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -21,7 +23,7 @@ abstract class CommonSlidePageState<T extends CommonSlidePage>
|
||||
Widget build(BuildContext context) {
|
||||
return enableSlide
|
||||
? Padding(
|
||||
padding: EdgeInsets.only(top: padding),
|
||||
padding: EdgeInsets.only(top: max(0, padding)),
|
||||
child: buildPage,
|
||||
)
|
||||
: buildPage;
|
||||
|
||||
Reference in New Issue
Block a user