I have a multi-line body of text which I want to split across screens. I am using the Text widget with overflow property like this:
Text(
body,
style: Theme.of(context).textTheme.bodyText2,
maxLines: 8,
overflow: TextOverflow.ellipsis,
);
Now, on the next page, I want to start the text from the word where the previous page got truncated. For example, for the body 'Hello, nice to meet you all. Hope you have a good day!', this is what it would look like:
On Page 1:
Hello, nice to meet you all. Hope...
On Page 2:
...you have a good day!
Now, I am trying to find a way for the Text widget to tell me where it truncated the text on Page 1. Anybody got any suggestions on how to go about it?