From f90f759667f90b875fb53beb08e09eeec777a5bc Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sat, 5 Apr 2025 16:42:34 +0800 Subject: [PATCH] opt: jump to reply Signed-off-by: bggRGjQaUbCoE --- lib/pages/video/detail/reply_reply/controller.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/video/detail/reply_reply/controller.dart b/lib/pages/video/detail/reply_reply/controller.dart index 4eacd42ef..5cf12072f 100644 --- a/lib/pages/video/detail/reply_reply/controller.dart +++ b/lib/pages/video/detail/reply_reply/controller.dart @@ -85,10 +85,10 @@ class VideoReplyReplyController extends ReplyController index: hasRoot ? index! + 3 : index! + 1, alignment: 0.25, ); + await Future.delayed(const Duration(milliseconds: 800)); + await controller?.forward(); + index = null; } catch (_) {} - await Future.delayed(const Duration(milliseconds: 800)); - await controller?.forward(); - index = null; } }); }