Skip to content

Editor sizes and aligns incorrectly even the most basic embeds #2563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
pamafe1976 opened this issue May 13, 2025 · 0 comments
Open
1 task done

Editor sizes and aligns incorrectly even the most basic embeds #2563

pamafe1976 opened this issue May 13, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@pamafe1976
Copy link

Have you checked for an existing issue?

Flutter Quill Version

11.4.0

Steps to Reproduce

Hi,

This is how a text line with a simple text embed look side by side. They have the same font and I changed back color to show the difference in alignment and container box.

Image

The code I used to insert the embed is the following:

class TextEmbedBuilder extends EmbedBuilder  {
  TextEmbedBuilder();

  @override
  String get key => TextEmbed.tipo;

  @override
  bool get expanded => false;

  @override
  Widget build(
    BuildContext context,
    EmbedContext embedContext,
  ) {
   
    final textEmbed = TextEmbed.fromNode(embedContext.node.value.data);

    return Builder(builder: (context) {
        return Text(
          'Text in embed',
          style: style,
        );
      }),
})}

Expected results

There should be a way of correctly aligning the embed and the text vertically

Actual results

Wrong vertical alignment, as seen on the image

Additional Context

This issue has been submitted previously, with no response.
I would try to fix it myself, but I would need some orientation on where to look from someone with more experience in this repo, since is has some complex logic going on and there are many files involved.

@pamafe1976 pamafe1976 added the bug Something isn't working label May 13, 2025
@pamafe1976 pamafe1976 changed the title Editor fails sizes and aligns incorrectly even the most basic embeds Editor sizes and aligns incorrectly even the most basic embeds May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant