Open mohammednabil95 opened 5 months ago
I’m facing the same issue where my data is dynamically fetched from an API and used to populate a PDF. The text content sometimes lacks line breaks, which is causing display problems in the pdf as well as table cells. I’m stuck trying to figure out how to handle this content to ensure it displays correctly. Any help or suggestions would be appreciated!
in my case, i resolved using map instead of using ListView
SizedBox( width: width, child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ if (data.isNotEmpty) ...[ ...data.map((e) { return YOURWIDGET(), }), ],
],
),
),
I'm using this wonderful and lot's of feature plugin and i able to show multiple pages pdf. Now the issue the data is coming from api and if the data on Text widget is in bulk information then i'm getting the exception 'toomanypagesexception'. It only works if i reduce the fontsize to 10 but text display is very small. Below is the sample dart code and please help me on this issue.