Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
feat: delay rendering selection(need to be refactored).
Lucas.Xuc7432e640be8
diff --git a/frontend/app_flowy/packages/flowy_editor/lib/editor_state.dart b/frontend/app_flowy/packages/flowy_editor/lib/editor_state.dartindex 277b742604..92a05fc880 100644--- a/frontend/app_flowy/packages/flowy_editor/lib/editor_state.dart+++ b/frontend/app_flowy/packages/flowy_editor/lib/editor_state.dart@@ -60,7 +60,12 @@ class EditorState {for (final op in transaction.operations) {_applyOperation(op);}- updateCursorSelection(transaction.afterSelection);+ // updateCursorSelection(transaction.afterSelection);++ // FIXME: don't use delay+ Future.delayed(const Duration(milliseconds: 16), () {+ updateCursorSelection(transaction.afterSelection);+ });if (options.recordUndo) {final undoItem = undoManager.getUndoHistoryItem();