-
Notifications
You must be signed in to change notification settings - Fork 991
Description
Have you checked for an existing issue?
- I have searched the existing issues
Use case
Either it's a image or a custom embed block, texts thats next to that block are always aligned to the bottom of the same line as embed block is positioned. It's okay when you are writing text in phone screen when portrait mode. But if you are writing in phone screen in landscape mode or on a larger screen like a tablet when there is a lot of wide space to work with, this could give bad user experience.
Proposal
It would be nice if text surrounding embed blocks could repositioned to move up to the same line as top edge of embed blocks, and text filled from there. Overriding EmbedBuilder's buildWidgetSpan method and setting WidgetSpan's alignment attribute to PlaceholderAlignment.top could make similar effect. But it only fills a single line of text at the top side of embed block, not filling the whole height to the bottom edge of embed block. So it leaves large chunk of space to the next line that's below the bottom edge of embed block. So using PlaceholderAlignment.top is not enough to remedy this problem.