The proposed problem, the way I've interpreted it, is to split the text of a source document in a number of substring (Pages), such as each substring can fit in a Text area, without spawning/requiring the scrollbars.
Thus, the first task is to calculate the number of Chunks/Pages into which a given Document has to be split.
The TextPainter Class methods are the usual tools.
The class must be instructed, while performing the calculation, to wrap the text (as the RichText control will), exclude any padding, and fit the string in a TextBox type control edit area.
The next task is to calculate how many letters/symbols will fit in the area of a TextPainter Layout so that no scroll bars are needed.
My Published Apps:-
https://play.google.com/store/apps/de...
https://play.google.com/store/apps/de...
My Instagram:- / sujanbhattaraiofficial
Source Code:- https://github.com/sujanbhattaraioffi...
Music Credit:- • 🍂 [Copyright Free Chill Background Mu...
#textsplit #splittedText #textPageView #textOffset #textOverflow
Watch video Flutter - How to split a long text into multiple pieces/pages ? online without registration, duration hours minute second in high quality. This video was added by user Sujan Bhattarai 05 June 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,28 once and liked it 3 people.