opt: reply2reply: jump to target

This commit is contained in:
bggRGjQaUbCoE
2024-10-13 09:27:29 +08:00
parent 34a467a230
commit ae0d012c0f

View File

@@ -113,9 +113,9 @@ class VideoReplyReplyController extends CommonController
).animate(controller!);
() async {
await Future.delayed(const Duration(milliseconds: 200));
await itemScrollCtr.scrollTo(
index: hasRoot ? index! + 3 : index! + 1,
duration: const Duration(milliseconds: 200),
itemScrollCtr.jumpTo(
index: hasRoot ? index! + 3 : index! + 1, alignment: 0.25,
// duration: const Duration(milliseconds: 200),
);
await Future.delayed(const Duration(milliseconds: 800));
await controller?.forward();