79124493

Date: 2024-10-25 06:40:08
Score: 0.5
Natty:
Report link

I have wrapped the pw.TableHelper.fromTextArray with a Container and set the margin attribute of the container to negative number.

pw.Container(
      margin: pw.EdgeInsets.symmetric(horizontal: -45),
      child: pw.TableHelper.fromTextArray(
        border: null,
        ...),
 ),

what jarinox suggester in the comment will work if need to set margin for all the page, hence, all widgets in it will be impacted. in my case I wanted only the table to be stretched.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Saeed isa