mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
bring back remove player safearea
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user