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
203 stars 140 forks source link

Feature/checkbox alignment #204

Closed mithunadhikari40 closed 1 year ago

mithunadhikari40 commented 1 year ago

Currently the checkbox on the starting side of table always aligns to the centre. In our requirement, we needed the checkbox to be on the top left corner. But there is no way to do so without maintaining our own repo of this repo. We are extensively using this package and it's working wonders for us. We thought someone else might also need to align the checkbox and thought of raising a PR. We have tested the code and it's working fine. We also needed to make a change in the test case where we are exepecting a Center widget as parent of Checkbox, because it's going to be Align now. Passing the alignment on the Container inside wrapInContainer method would not work because the Center is always there, so we are required to replace the Center with Align to have an ability to align the checkbox. We thought Align would be the best option to replace Center with, because Center extends Align

maxim-saplin commented 1 year ago

Thanks!

mithunadhikari40 commented 1 year ago

Thanks a lot. Sorry, I did not realise the changes needed to be done on yaml, readme and other files. Once again, Thank you.