appflowy-editor
appflowy-editor copied to clipboard
[Bug] Caret causes text aligned center or right to be misaligned
Bug Description
Aligning a paragraph block center or right causes text to be misaligned when the caret is focused on the paragraph block. Moving the caret to another block makes the alignment correct.
How to Reproduce
- Input text to an AppFlowyEditor widget.
- Set alignment to center or right, see the text misaligned
- Move the caret to another block (or create a new one by adding a newline)
Expected Behavior
Alignment should be preserved even if caret is present.
Operating System
Windows 11 (26200.5074)
AppFlowy Editor Version(s)
6.0.0 (main branch from repository), Flutter 3.35
Screenshots
Video: https://www.youtube.com/watch?v=gjfYJwQmr1s
Additional Context
No response
I've noticed that removing the placeholder from the paragraph block "fixes" it.