CaTeX icon indicating copy to clipboard operation
CaTeX copied to clipboard

Catex Widget Overflowing

Open heydc7 opened this issue 3 years ago • 1 comments

Catex Widget is overflowing & not getting on a new line.

I am using Catex to render equations in my app. But, I am facing this issue of overflow. I have literally tried everything till now(IntrinsicHeight, SizedBox, Inkwell, etc.), but it is still showing the rendered equations on the same line.

To Reproduce

Steps to reproduce the behavior: I have a column & I have added Catex in it as a children

CaTeX('Q${qIndex + 1}.~' + question.toString().replaceAll('…', ' ..'))

Expected behavior

Catex should show rendered text in multiple lines & should not overflow.

Screenshots

IMG_20211115_215311

Please help. Thank you in advance.

heydc7 avatar Nov 15 '21 16:11 heydc7

Hi @dhanrajdc7 - thanks for using the package and opening the issue.

This is currently a known limitation. We have halted the development of this package last year and are now interim maintaining https://pub.dev/packages/flutter_math_fork.

However, that package does not allow for line wrapping yet, so you will probably have to go with a horizontal scroll view (that is how we do it) or use manual line breaks.

Thanks for your understanding!