CaTeX
CaTeX copied to clipboard
Catex Widget Overflowing
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
Please help. Thank you in advance.
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!