0

I am new to flutter and I have learned paginated datatable from this. It works with static data but when I pass the json response and map with model class I am not getting the row data.

My json response: Link

I am getting the response but not set data in table row.

Here is my Row code:

@override
  DataRow getRow(int index) {
name.map((nameone){
    return DataRow(cells: [
      DataCell(Text(nameone.id.toString())),
      DataCell(Text(nameone.name.tostring))),
      DataCell(Text(nameone.year.tostring))),
    ]);
}).tolist();
  }

Here name is a list with model type NameOne.

Any Suggestion/ Dynamic Json Data Implementation in Paginated Datatable is much needed and will be very thankful if supported.

TripleNine
  • 1,457
  • 1
  • 4
  • 15

0 Answers0