touchlane / gridpad-android

GridPad is a Jetpack Compose library that allows you to place UI elements in a predefined grid, manage spans in two dimensions, have flexible controls to manage row and column sizes.
MIT License
68 stars 5 forks source link

Adding space between items - alignment & arrangement #27

Closed ienground closed 8 months ago

ienground commented 8 months ago

Hello, thanks to your library, shapes of grid are very awesome. However, is it possible to add space between items : by columns / by rows. in addition, I hope that we can adjust arrangement items in gridpad. example) Arrangement.Center : < space >

Thanks for reading this issue!

landarskiy commented 8 months ago

Hello and thank you for your interest in the library! We take into account your suggestions for further development, but we do not promise that they will be integrated soon. As a solution to request alignment, you can always wrap your composable in Box, and that should work well and fast enough thanks to compose's internal optimizations.

ienground commented 8 months ago

Thanks for your answer! I hope these functions will be available soon. :) so is it correct that spaces are not available in this version? I checked, thanks ;)

landarskiy commented 8 months ago

That's right, the current version is not designed to do anything other than correctly partition the surface into cells based on your configuration (rows/columns count, rows/columns sizes).