I have a long text, when I put it in a container not all of it is shown. I'm using PageView, How can I split the text efficiently in a way each part will fit a container with fixed size?
Example:
MyTxt = "abcdefg-abcdefg-abcdefg-abcdefg-abcdefg"
MyContainer can fit "abcdefg-abcdefg-" MySplitter(Mytxt, MyContainer) gives something like [[abcdefg-abcdefg-],[abcdefg-abcdefg-],[abcdefg]]
I can use something like ListView, but I don't want to .
I can just work infinite time and split it myself, but what if the container size will change? or the font size? no...I need a programmatic solution to that
I saw this Split very long text into pages in Flutter but the solutions there are too complex.
Is there a way to determine if text overflow outside container bounds? that would help me as well