build method
dynamic
build(- dynamic context
)
Implementation
@override
Widget build(BuildContext context) {
final theme = getFromContext(context, this);
return Container(
height: theme.height,
decoration: NomoDecoration(
color: theme.background,
elevation: 16,
),
padding: theme.padding,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
for (final item in items)
NomoHorizontalListTile(
item: item,
theme: theme,
selected: item == selected,
onTap: () => onTap?.call(item),
),
],
),
);
}