From 549d6cb9848d42a12a751334b4f996481d673ada Mon Sep 17 00:00:00 2001 From: felix lee Date: Mon, 15 Jul 2024 00:09:34 +0800 Subject: [PATCH] fix: Embed Reloads on Cmd Key Press --- lib/src/widgets/quill/text_line.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/widgets/quill/text_line.dart b/lib/src/widgets/quill/text_line.dart index c3dbb146..56665013 100644 --- a/lib/src/widgets/quill/text_line.dart +++ b/lib/src/widgets/quill/text_line.dart @@ -67,7 +67,11 @@ class _TextLineState extends State { if (_metaOrControlPressed != newValue) { setState(() { _metaOrControlPressed = newValue; - _richTextKey = UniqueKey(); + _linkRecognizers + ..forEach((key, value) { + value.dispose(); + }) + ..clear(); }); } }