NomoBottomBar<T> constructor
const
NomoBottomBar<T> ({
- required List<
NomoMenuItem< items,T> > - required T? selected,
- double? itemWidth,
- double? widthFactor,
- Key? key,
- double? height,
- TextStyle? style,
- void onTap(
- NomoMenuItem<
T> item
- NomoMenuItem<
- Widget? title,
- Color? background,
- Color? foreground,
- Color? selectedForeground,
- BorderRadius? itemBorderRadius,
- double? spacing,
- EdgeInsetsGeometry? padding,
- double? iconSize,
- EdgeInsetsGeometry? itemPadding,
- Widget itemDecorator(
- NomoMenuItem<
T> item, - Widget child
- NomoMenuItem<
- double? elevation,
- BorderRadius? borderRadius,
Implementation
const NomoBottomBar({
required this.items,
required this.selected,
this.itemWidth,
this.widthFactor,
super.key,
this.height,
this.style,
this.onTap,
this.title,
this.background,
this.foreground,
this.selectedForeground,
this.itemBorderRadius,
this.spacing,
this.padding,
this.iconSize,
this.itemPadding,
this.itemDecorator,
this.elevation,
this.borderRadius,
}) : assert(
items.length > 0 && items.length <= 5,
'Items must be between 1 and 5',
);