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
Merge branch 'feat/flowy_editor' into feat/flowy_editor
Lucas.Xu6c811aef728d
diff --cc frontend/app_flowy/packages/flowy_editor/lib/editor_state.dartindex ed917403b6,1e6e404385..ced48242e2--- a/frontend/app_flowy/packages/flowy_editor/lib/editor_state.dart+++ b/frontend/app_flowy/packages/flowy_editor/lib/editor_state.dart@@@ -1,20 -1,28 +1,31 @@@+import 'package:flowy_editor/document/node.dart';+import 'package:flowy_editor/operation/operation.dart';+ import 'dart:async';+ import 'package:flowy_editor/flowy_editor.dart';+ import 'package:flowy_editor/undo_manager.dart';import 'package:flutter/material.dart';- import './document/state_tree.dart';import './document/selection.dart';- import './operation/operation.dart';- import './operation/transaction.dart';- import './render/render_plugins.dart';++ class ApplyOptions {+ /// This flag indicates that+ /// whether the transaction should be recorded into+ /// the undo stack.+ final bool recordUndo;+ const ApplyOptions({+ this.recordUndo = true,+ });+ }class EditorState {final StateTree document;final RenderPlugins renderPlugins;+ List<Node> selectedNodes = [];-+ final UndoManager undoManager = UndoManager();Selection? cursorSelection;+ Timer? _debouncedSealHistoryItemTimer;+EditorState({required this.document,required this.renderPlugins,