opt: matrix anim (#1829)

This commit is contained in:
My-Responsitories
2026-02-08 15:27:03 +08:00
committed by GitHub
parent 4ac855d393
commit 8234b7ac92
6 changed files with 156 additions and 111 deletions

View File

@@ -48,9 +48,7 @@ class AppBarAni extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SlideTransition(
position: isTop
? controller.drive(_topPos)
: controller.drive(_bottomPos),
position: controller.drive(isTop ? _topPos : _bottomPos),
child: DecoratedBox(
decoration: BoxDecoration(
gradient: isTop ? _topDecoration : _bottomDecoration,