'Flutter pdf plugin long text is not going in new line
I am using a plugin
pdf : ^3.7.1
On Using Following Code
pw.Text(Very Long Text,
style: pw.TextStyle(
fontSize: 20,
),
),
The very long text is not going in a new line it's going out of the bound of the page.

As you can see the text is cut after reaching the end. Even on using paragraph same happened.
Solution 1:[1]
That happens because that package can't "go inside" a single widget and split it in order to make it fit the page (or, in other cases, to create a new page). You have to either wrap the text yourself and make it a multiline widget, or split the text yourself (maybe using something like CR or LF as separator) and divide it over different widgets.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | il_boga |
