Search code examples
flutterdartflutter-datatable

Flutter Data Table Row Sums


I am looking for a tabular data widget like DataTable which contains;

  • Pagination support
  • Sticky header
  • Footer row for sums on page

Every page will contain a fixed number of rows if there are enough. Also, the table will fit screen height but it should be scrollable horizontally because there are dozens of columns.

dummy example It will be basically like this dummy presentation.

I started with the catalog widget PaginatedDataTable but unfortunately, it has no footer row support and sticky header. Then I thought maybe I could handle it with the Table widget but that widget lacks lots of things.

Then I tried advanced_table and data_table2. Both have sticky headers and pagination support but the footer row became a problem.

I thought that thinking more uncomplicated can make everything better and tried to use ListView but this time even aligning row values with headers became a problem.


Solution

  • have you tried this? https://pub.dev/packages/syncfusion_flutter_datagrid its have:

    • Stacked headers ,Summary row ,Paging, Loadmore
    • etc

    enter image description here