mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -18,13 +18,16 @@ class AppBarAni extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
visible ? controller.forward() : controller.reverse();
|
||||
return SlideTransition(
|
||||
position: Tween<Offset>(
|
||||
begin: Offset(0, position! == 'top' ? -1 : 1.1),
|
||||
end: Offset.zero,
|
||||
).animate(CurvedAnimation(
|
||||
parent: controller,
|
||||
curve: Curves.linear,
|
||||
)),
|
||||
position:
|
||||
Tween<Offset>(
|
||||
begin: Offset(0, position! == 'top' ? -1 : 1.1),
|
||||
end: Offset.zero,
|
||||
).animate(
|
||||
CurvedAnimation(
|
||||
parent: controller,
|
||||
curve: Curves.linear,
|
||||
),
|
||||
),
|
||||
child: DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
gradient: position! == 'top'
|
||||
|
||||
Reference in New Issue
Block a user