jonataslaw / readmore

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

[FEATURE] Wrapping widgets and not only strings #25

Open SalahAdDin opened 2 years ago

SalahAdDin commented 2 years ago

Hello,

I used your package a lot to render text on my application, it gives up a very important feature: wrapping text in order to hide if it is too long.

Now, there is a new requirement: rendering markdown instead of simple text. For doing this I used this package; but it does not include a easy way to hide excesive text as this package does.

Do you think this package could have the capability to wrap widgets too?

Thank you.

ahetawal-p commented 2 years ago

I am also looking for the exact same thing..

salahkamal commented 2 years ago

I wish if the package supports that

maRci002 commented 6 months ago

FYI, check out PR #54, which has markdown capabilities. I can upgrade Annotation to allow WidgetSpan, but that would interfere with the line length calculation, as far as I know, since the engine won't recognize the size of WidgetSpan.

https://github.com/jonataslaw/readmore/assets/8436039/3c7fc530-e550-4636-8de7-367cfe6ba9bd