Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-06 14:14:19 +08:00
parent 1a8c348af1
commit 07843a5e77
239 changed files with 3175 additions and 13237 deletions

View File

@@ -8,14 +8,12 @@ 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),
@@ -55,13 +53,11 @@ class AppBarAni extends StatelessWidget {
decoration: BoxDecoration(
gradient: isTop ? _topDecoration : _bottomDecoration,
),
child: removeSafeArea
? child
: ViewSafeArea(
left: isFullScreen,
right: isFullScreen,
child: child,
),
child: ViewSafeArea(
left: isFullScreen,
right: isFullScreen,
child: child,
),
),
);
}