refactor: cover node widget code (#2899)

* chore: change initial cover type's name to none

* chore: refactor cover node widget

* chore: use a constant instead of magic value

* fix: make the size of icon hover effect smaller

* chore: improve appearance of selected color

* test: add cover integration tests

* fix: inner ring of selected color in dark mode

* refactor: cover node to document header node

* test: simplify tests

* chore: rename files
This commit is contained in:
Richard Shiue 2023-06-27 15:17:51 +08:00 committed by GitHub
parent a3e09f6021
commit 7f74fd6149
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 865 additions and 672 deletions

View file

@ -123,7 +123,7 @@ class _DocumentPageState extends State<DocumentPage> {
return const Placeholder();
}
final page = editorState!.document.root;
return CoverImageNodeWidget(
return DocumentHeaderNodeWidget(
node: page,
editorState: editorState!,
);