renderRow function

Component renderRow(
  1. RowProps props
)

Renders a row layout component.

Implementation

Component renderRow(RowProps props) {
  return dom.div(
    classes: 'arcane-row',
    styles: dom.Styles(raw: {
      'display': 'flex',
      'flex-direction': 'row',
      'justify-content': props.mainAxisAlignment.css,
      'align-items': props.crossAxisAlignment.css,
      if (props.mainAxisSize == MainAxisSize.max) 'width': '100%',
      if (props.gap > 0) 'gap': '${props.gap}px',
    }),
    props.children,
  );
}