buildRow function

Widget buildRow(
  1. BuildContext context,
  2. OpenUiNode node
)

Implementation

Widget buildRow(BuildContext context, OpenUiNode node) {
  final gap = node.theme.spaceOf(node.props['gap']) ?? 8;
  final align = node.props.string('align');
  final justify = node.props.string('justify');
  final items = _slot(
    _items(node, node.props['children']),
    parent: SlotParent.other,
    flow: false,
  );
  return _cardHead(
    context,
    node,
    _row(
      items,
      theme: node.theme,
      gap: gap,
      align: align,
      justify: justify,
      wrap: node.props.boolean('wrap') ?? false,
    ),
  );
}