From 5c0abd915c7a3c20656bcf81543a1539280a88b6 Mon Sep 17 00:00:00 2001 From: appflowy Date: Thu, 21 Oct 2021 22:03:58 +0800 Subject: [PATCH] [flutter]: EditableTextLine render graph --- doc/EDITOR.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 doc/EDITOR.md diff --git a/doc/EDITOR.md b/doc/EDITOR.md new file mode 100644 index 0000000000..f24f432344 --- /dev/null +++ b/doc/EDITOR.md @@ -0,0 +1,33 @@ + + +``` +// Widget Element RenderObject +// +// │ │ +// +// ┌─────────────────────┐ │ ┌────────────────────────┐ │ ┌─────────────────────────┐ +// │ RenderObjectWidget │◀────────────│ _TextLineElement │─────▶│ RenderEditableTextLine │ +// └─────────────────────┘ │ └────────────────────────┘ │ └─────────────────────────┘ +// △ │ │ +// │ │ │ │ ┌─────────▽────────┐ +// │ ▽ │RenderEditableBox │ +// ┌────────────────────┐ │ ┌──────────────────────┐ │ └──────────────────┘ +// ┌──│ EditableTextLine │ │ RenderObjectElement │ │ +// │ └────────────────────┘ │ └──────────────────────┘ │ ▽ +// │ ┌────────────┐ +// │ │ │ │ RenderBox │ +// │ └────────────┘ +// │ body ┌────────────┐ │ │ │ +// ├──────────▶│ TextLine │ ▽ +// │ └────────────┘ │ │ ┌─────────────┐ +// │ │RenderObject │ +// │ ┌────────────┐ │ │ └─────────────┘ +// └──────────▶│ Line │ +// └────────────┘ │ │ +// +// │ │ Layout, size, painting and +// Widget: holds the config for a Represents an actual comositing +// piece of UI. │ piece of UI │ +// +// +```