We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I figured out that we have bug in RTL mode
It tried to fix it, but failed , I think the bug is here https://github.com/jonataslaw/readmore/blob/master/lib/readmore.dart#L148-L152
I changed it to, it works better but not fixed
if (textDirection == TextDirection.rtl) { final pos = textPainter.getPositionForOffset(Offset( linkSize.width, textSize.height, )); endIndex = textPainter.getOffsetBefore(pos.offset); // endIndex = textPainter.getOffsetAfter(pos.offset); I tried getOffsetAfter too } else { final pos = textPainter.getPositionForOffset(Offset( textSize.width - linkSize.width, textSize.height, )); endIndex = textPainter.getOffsetBefore(pos.offset); }
@jonataslaw can you take a look?
The text was updated successfully, but these errors were encountered:
@jonataslaw Can you please reply?
Sorry, something went wrong.
@jonataslaw Please please reply
Successfully merging a pull request may close this issue.
I figured out that we have bug in RTL mode
It tried to fix it, but failed , I think the bug is here https://github.com/jonataslaw/readmore/blob/master/lib/readmore.dart#L148-L152
I changed it to, it works better but not fixed
@jonataslaw can you take a look?
The text was updated successfully, but these errors were encountered: