djade007 / latext

A flutter package to efficiently display scientific LaTeX equations using the flutter_math library, without relying on WebView or JavaScript.
European Union Public License 1.2
12 stars 5 forks source link

Text and equations are vertically offset. #1

Closed fredrikbaberg closed 7 months ago

fredrikbaberg commented 1 year ago

Hi, Thank you for this package! I did a work-around by splitting the content between text and equations but had issues when I needed to split the content into multiple lines, this should clean up the code a lot.

I noticed the text and equation are vertically offset; do you think that is easy to resolve?

Example: image

child: LaTexT(
  laTeXCode: Text(
    r"A-$\alpha$-B",
    style: Theme.of(context)
        .textTheme
        .bodyLarge
        ?.copyWith(color: Colors.red),
  ),
),
djade007 commented 1 year ago

I'm not able to replicate.

It looks like this on my end: sns

fredrikbaberg commented 1 year ago

I'll check this again, as soon as I've gotten it to run again (updated Flutter, see #3).