Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-16 15:35:15 +08:00
parent fa85ae47ac
commit b978ff5649
8 changed files with 101 additions and 78 deletions

View File

@@ -1,4 +1,5 @@
import 'package:PiliPlus/common/skeleton/video_reply.dart';
import 'package:PiliPlus/common/widgets/colored_box_transition.dart';
import 'package:PiliPlus/common/widgets/custom_sliver_persistent_header_delegate.dart';
import 'package:PiliPlus/common/widgets/flutter/refresh_indicator.dart';
import 'package:PiliPlus/common/widgets/loading_widget/http_error.dart';
@@ -327,8 +328,8 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
}
final child = _replyItem(context, response[index], index);
if (jumpIndex == index) {
return AnimatedBuilder(
animation: _colorAnimation ??= _controller.animController.drive(
return ColoredBoxTransition(
color: _colorAnimation ??= _controller.animController.drive(
ColorTween(
begin: theme.colorScheme.onInverseSurface,
end: theme.colorScheme.surface,
@@ -339,12 +340,6 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
),
),
child: child,
builder: (context, child) {
return ColoredBox(
color: _colorAnimation!.value!,
child: child,
);
},
);
}
return child;