List<Widget> getChildren() { return List.generate(icons.length, (index) { if (index == icons.length - 1) return icons[index]; return Row(children: [icons[index], SizedBox(width: spacing)]); }); }