feat: support creating subpage block in row detail page (#6824)

* feat: support creating subpage block in row detail page

* feat: hide the row page from sidebar

* test: support creating a sub-page block in row detail page

* fix: update drag block logic

* feat: support toggle heading in outline

* test: add toggle headings show in outline block test

* fix: unable to get focus when opening subpage from card
This commit is contained in:
Lucas 2024-11-19 09:58:04 +08:00 committed by GitHub
parent df7fe9750d
commit c24b68481d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 298 additions and 143 deletions

View file

@ -164,9 +164,7 @@ class _DocumentPageState extends State<DocumentPage>
create: (_) {
final context = SharedEditorContext();
if (widget.view.name.isEmpty) {
WidgetsBinding.instance.addPostFrameCallback((_) {
context.coverTitleFocusNode.requestFocus();
});
context.requestCoverTitleFocus = true;
}
return context;
},