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

@@ -28,7 +28,6 @@ class VideoReplyController extends ReplyController<MainListReply>
bool _isFabVisible = true;
late final AnimationController _fabAnimationCtr;
late final CurvedAnimation _curvedAnimation;
late final Animation<Offset> animation;
@override
@@ -38,14 +37,12 @@ class VideoReplyController extends ReplyController<MainListReply>
vsync: this,
duration: const Duration(milliseconds: 100),
)..forward();
_curvedAnimation = CurvedAnimation(
parent: _fabAnimationCtr,
curve: Curves.easeInOut,
animation = _fabAnimationCtr.drive(
Tween<Offset>(
begin: const Offset(0.0, 2.0),
end: Offset.zero,
).chain(CurveTween(curve: Curves.easeInOut)),
);
animation = Tween<Offset>(
begin: const Offset(0, 2),
end: Offset.zero,
).animate(_curvedAnimation);
}
void showFab() {
@@ -78,7 +75,6 @@ class VideoReplyController extends ReplyController<MainListReply>
@override
void onClose() {
_curvedAnimation.dispose();
_fabAnimationCtr.dispose();
super.onClose();
}