feat: support text align and block align (#3292)

* feat: support text align and block align

* test: add test
This commit is contained in:
Lucas.Xu 2023-08-30 17:21:32 +08:00 committed by GitHub
parent 897d7980f6
commit f73d59fb57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 241 additions and 15 deletions

View file

@ -102,7 +102,8 @@ class _DocumentPageState extends State<DocumentPage> {
editorState: editorState!,
styleCustomizer: EditorStyleCustomizer(
context: context,
padding: const EdgeInsets.symmetric(horizontal: 50),
// the 44 is the width of the left action list
padding: const EdgeInsets.only(left: 40, right: 40 + 44),
),
header: _buildCoverAndIcon(context),
);