Skip to content
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

Line breaking with Wrap causes inconsistent positioning #57

Open
RelatedTitle opened this issue Oct 13, 2022 · 1 comment
Open

Line breaking with Wrap causes inconsistent positioning #57

RelatedTitle opened this issue Oct 13, 2022 · 1 comment

Comments

@RelatedTitle
Copy link

The line-breaking doc suggests breaking the latex into parts and putting them into a Wrap widget, however, this causes inconsistencies in the positioning and spacing between the parts.

x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Actual result:
image

Expected result:
image

Is there a better way to do this?

@Maclaon
Copy link

Maclaon commented Jun 28, 2023

set crossAxisAlignment and runSpacing in Wrap widget.

return Wrap(
  crossAxisAlignment: WrapCrossAlignment.center,
  runSpacing: 30.h,
  children: breakEquation.parts,
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants