bring back remove player safearea

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-19 10:18:18 +08:00
parent e88769308e
commit 9543f3b457
10 changed files with 76 additions and 17 deletions

View File

@@ -8,12 +8,14 @@ class AppBarAni extends StatelessWidget {
required this.controller,
required this.isTop,
required this.isFullScreen,
required this.removeSafeArea,
});
final Widget child;
final AnimationController controller;
final bool isTop;
final bool isFullScreen;
final bool removeSafeArea;
static final _topPos = Tween<Offset>(
begin: const Offset(0.0, -1.0),
@@ -53,11 +55,13 @@ class AppBarAni extends StatelessWidget {
decoration: BoxDecoration(
gradient: isTop ? _topDecoration : _bottomDecoration,
),
child: ViewSafeArea(
left: isFullScreen,
right: isFullScreen,
child: child,
),
child: removeSafeArea
? child
: ViewSafeArea(
left: isFullScreen,
right: isFullScreen,
child: child,
),
),
);
}