CustomRow function

Widget CustomRow(
  1. List<Widget> children, [
  2. double spacing = 8
])

Implementation

Widget CustomRow(List<Widget> children, [double spacing = 8]) {
    List<Widget> content = [];

    for (int i = 0; i < children.length; i++) {
        content.add(children[i]);
        if (i < children.length - 1) {
            content.add(Spacing(spacing));
        }
    }
    return Row(mainAxisSize: MainAxisSize.min, children: content);
}