fix: highlight anim

This commit is contained in:
bggRGjQaUbCoE
2024-10-12 20:16:43 +08:00
parent e060cb1df6
commit bbbb089c65
2 changed files with 4 additions and 3 deletions

View File

@@ -118,9 +118,8 @@ class VideoReplyReplyController extends CommonController
duration: const Duration(milliseconds: 200), duration: const Duration(milliseconds: 200),
); );
await Future.delayed(const Duration(milliseconds: 800)); await Future.delayed(const Duration(milliseconds: 800));
controller?.forward().whenComplete(() { await controller?.forward();
index = null; index = null;
});
}(); }();
} }
id = null; id = null;

View File

@@ -57,7 +57,9 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
@override @override
void dispose() { void dispose() {
_videoReplyReplyController.controller?.stop();
_videoReplyReplyController.controller?.dispose(); _videoReplyReplyController.controller?.dispose();
_videoReplyReplyController.controller = null;
Get.delete<VideoReplyReplyController>(tag: widget.rpid.toString()); Get.delete<VideoReplyReplyController>(tag: widget.rpid.toString());
super.dispose(); super.dispose();
} }