applyGap static method
Apply gap spacing to children
Implementation
static List<Widget> applyGap(List<Widget> children, double gap) {
if (gap <= 0 || children.length <= 1) return children;
final result = <Widget>[];
for (int i = 0; i < children.length; i++) {
result.add(children[i]);
if (i < children.length - 1) {
result.add(SizedBox(width: gap, height: gap));
}
}
return result;
}