LabelledNavBar method
Implementation
Widget LabelledNavBar() {
if (items.every((item) => item.width == null)) {
return Container(
color: backgroundColor ?? Colors.transparent,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: items.asMap().entries.map((entry) {
return _buildNavItem(entry.value, entry.key);
}).toList(),
),
);
} else {
return Container(
color: backgroundColor ?? Colors.transparent,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: items.asMap().entries.map((entry) {
return _buildNavItem(entry.value, entry.key);
}).toList(),
),
);
}
}