if i pass maxLines parameter in defaultTextStyle , It is being applied into paragraph tags in html elements not for the whole data we pass. Is there any workaround for this?
Are you trying to limit the whole html document to maxLines?
Yes. Is there better work around for this ?
Not really, the defaultTextStyle applies to each text node individually, so the entire html document is hard to limit. What do you want the html document to do if it exceeds maxLines?
my usecase to have ellipsis at the end after document exceeds maxLines.
Yes, I see how that could be useful. I'll look into adding that as a feature.
Hi @Sub6Resources,
Our mobile app data are coming from CMS so obviously, there will be basic HTML tags like p, superscript, subscript tags which has to display in Flutter Text widget. But, right now Flutter is not providing the option to do it. We are happy to use your library to solve this problem. Right now, the problem is we are not able to set max lines and ellipses. Can you help us to solve this problem?. Our most of the texts will have superscript and subscript tags.
Thank you!
Palani Arunagiri
Same here
@PalaniArunagiri and @dariotrombello I'm currently in school full time and working part time as well so I don't have much time to work on this. Unfortunately, the widget doesn't have any sort of concept of the number of lines at the moment, so this isn't an easy fix. I've increased the priority of this feature request and added a "help wanted" label to attract attention to this issue for potential collaborators. If anybody has more time than I do and wants to take a shot at it, that would be awesome.
Any updates on this feature?
Most helpful comment
@PalaniArunagiri and @dariotrombello I'm currently in school full time and working part time as well so I don't have much time to work on this. Unfortunately, the widget doesn't have any sort of concept of the number of lines at the moment, so this isn't an easy fix. I've increased the priority of this feature request and added a "help wanted" label to attract attention to this issue for potential collaborators. If anybody has more time than I do and wants to take a shot at it, that would be awesome.