Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-25 13:43:20 +08:00
parent 161bf2eedb
commit 20a36e8f9a
97 changed files with 596 additions and 436 deletions

View File

@@ -24,6 +24,7 @@ mixin TripleMixin on GetxController, TickerProvider {
// no need for pugv
AnimationController? _tripleAnimCtr;
CurvedAnimation? _curvedAnimation;
Animation<double>? _tripleAnimation;
AnimationController get tripleAnimCtr =>
@@ -33,10 +34,15 @@ mixin TripleMixin on GetxController, TickerProvider {
reverseDuration: const Duration(milliseconds: 400),
);
CurvedAnimation get curvedAnimation => _curvedAnimation ??= CurvedAnimation(
parent: tripleAnimCtr,
curve: Curves.easeInOut,
);
Animation<double> get tripleAnimation => _tripleAnimation ??= Tween<double>(
begin: 0,
end: -2 * pi,
).animate(CurvedAnimation(parent: tripleAnimCtr, curve: Curves.easeInOut));
).animate(curvedAnimation);
Timer? _timer;
@@ -78,6 +84,7 @@ mixin TripleMixin on GetxController, TickerProvider {
@override
void onClose() {
_cancelTimer();
_curvedAnimation?.dispose();
_tripleAnimCtr?.dispose();
super.onClose();
}