mod: try-catch itemscrollctr jump

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-26 11:27:49 +08:00
parent eee7eda1a2
commit 5664447e15
4 changed files with 40 additions and 35 deletions

View File

@@ -97,10 +97,12 @@ class VideoReplyReplyController extends CommonController
).animate(controller!);
WidgetsBinding.instance.addPostFrameCallback((_) async {
if (index != null) {
itemScrollCtr.jumpTo(
index: hasRoot ? index! + 3 : index! + 1,
alignment: 0.25,
);
try {
itemScrollCtr.jumpTo(
index: hasRoot ? index! + 3 : index! + 1,
alignment: 0.25,
);
} catch (_) {}
await Future.delayed(const Duration(milliseconds: 800));
await controller?.forward();
index = null;