maxim-saplin / data_table_2

In-place substitute for Flutter's DataTable and PaginatedDataTable with fixed/sticky header and extra features
https://pub.dev/packages/data_table_2
BSD 3-Clause "New" or "Revised" License
202 stars 137 forks source link

Remove checkbox in header #227

Closed Priyantha-Kingslake closed 5 months ago

Priyantha-Kingslake commented 11 months ago

Allow customization on how the checkboxes will be displayed in DataTable2.

Ability to remove the checkbox in the header (select all checkbox) when showCheckboxColumn is set to true

jbournonville commented 5 months ago

Hello, I've created a PR to solve this : https://github.com/maxim-saplin/data_table_2/pull/270

@Priyantha-Kingslake if you want to try it on your project, update your dependencies like so :

  data_table_2:
    git:
      url: https://github.com/jbournonville/data_table_2
hasnentai commented 5 months ago

Can we also have label added next to the checkbox header ? I have design requirement which says Select All as next to the checkbox in header ?

maxim-saplin commented 5 months ago

You can have a separate column with Checkbox in the column label. Disable widget's checkbox column and handle the selection manually.

image image