jonataslaw / readmore

A Flutter plugin than allow expand and collapse text dynamically
MIT License
257 stars 79 forks source link

Emoji handling in `TrimMode.Line` causes excess lines beyond specified `trimLines` #63

Closed maRci002 closed 5 months ago

maRci002 commented 6 months ago

The implementation of PR #62, aimed at improving emoji handling in TrimMode.Length, inadvertently introduces a regression in TrimMode.Line. When using TrimMode.Line with a specific trimLines value, texts containing emojis now exceed the set line limit, displaying more lines than intended.

Current behaviour trimLines: 3:

Expected behaviour trimLines: 3: