The current implementation of the Arrangement API is missing the spacedBy function, provided by Compose UI. This PR enables the API to support Arrangement with spacing between the children elements for the given container.
[!IMPORTANT]
Compose UI also supports negative values for the spacedBy function. As we are using gap for adding the space between the children of a Colunm or a Row, and gap only accepts values within [0, Infinity], we are ignoring negative values.
Comparison with Jetpack Compose
The following examples compare the implementation on Kobweb and Jetpack Compose on Android. The structure of the Composable will be:
Description
The current implementation of the
Arrangement
API is missing thespacedBy
function, provided by Compose UI. This PR enables the API to supportArrangement
with spacing between the children elements for the given container.Comparison with Jetpack Compose
The following examples compare the implementation on Kobweb and Jetpack Compose on Android. The structure of the Composable will be: