Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-20 17:42:40 +08:00
parent 923af32c96
commit 0b1f6c4d0e
26 changed files with 377 additions and 451 deletions

View File

@@ -16,7 +16,7 @@ class AppBarAni extends StatelessWidget {
final bool isFullScreen;
static final _topPos = Tween<Offset>(
begin: const Offset(0, -1),
begin: const Offset(0.0, -1.0),
end: Offset.zero,
);
@@ -49,8 +49,8 @@ class AppBarAni extends StatelessWidget {
Widget build(BuildContext context) {
return SlideTransition(
position: isTop
? _topPos.animate(controller)
: _bottomPos.animate(controller),
? controller.drive(_topPos)
: controller.drive(_bottomPos),
child: DecoratedBox(
decoration: BoxDecoration(
gradient: isTop ? _topDecoration : _bottomDecoration,