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
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 beAlign
now. Passing thealignment
on the Container insidewrapInContainer
method would not work because theCenter
is always there, so we are required to replace theCenter
withAlign
to have an ability to align the checkbox. We thoughtAlign
would be the best option to replaceCenter
with, becauseCenter
extendsAlign