RedJocker / OrdersMenu

0 stars 0 forks source link

items are not properly aligned #9

Closed RedJocker closed 1 year ago

RedJocker commented 1 year ago

For a more beautiful and harmonious look, I would place the names of the dishes on the left side, and the buttons on the right side.

on revision by @Razotron

RedJocker commented 1 year ago

It is true that having better alignment improves the UI, but I was thinking it would be an undesired complication if to achieve this one would need a more complex layout scheme of rows and cols. Maybe I'm wrong and there is an dumb-easy solution to better align items, but if that is not the case then I'm inclined keep it without concerning with alignment for simplification reasons. Users can learn and develop that skill with other more challenging projects.

RazoTRON commented 1 year ago

You just need an Arrangement.SpaceBetween argument for the Row composable and put buttons to the separate composable or inside another Row. Here is an example: https://github.com/RedJocker/OrdersMenu/issues/8

RedJocker commented 1 year ago

https://github.com/RedJocker/OrdersMenu/issues/8#issuecomment-1442584677