title: Flutter Printing Package: Create pdf table with loop
body: <p>I want to create a pdf document with the package 'pdf'. The example on the dart - page is working fine: <a href="https://pub.dev/packages/pdf#-example-tab-" rel="nofollow noreferrer">https://pub.dev/packages/pdf#-example-tab-</a></p>
  
  <p>You can see that the table is static. I want to create a dynamic table in the pdf document.</p>
  
  <p>The columns will be constant, but the rows have to be dynamic.</p>
  
  <p>I have tried to insert a for() - loop.</p>
  
  <p>The syntax is not correct.</p>
  
  <pre><code>      pdfWidget.Table.fromTextArray(context: context, data: &lt;List&lt;String&gt;&gt; [
          &lt;String&gt;['Date', 'PDF Version', 'Acrobat Version'],
          //.....
          //more Strings here.....
        ]),
  </code></pre>