NotchedNavBar constructor
const
NotchedNavBar({
- Key? key,
- required NotchedDecoration notchDecoration,
- required Color? color,
- required dynamic onTap(),
- int index = 0,
- required List<
NavbarItem> items,
Implementation
const NotchedNavBar(
{Key? key,
required this.notchDecoration,
required this.color,
required this.navBarElevation,
required this.onTap,
this.navbarHeight = kNotchedNavbarHeight,
this.index = 0,
required this.items})
: assert(items.length > 2,
"""NotchedNavBar requires at least 3 items to function properly,
This is a temporary limitation and will be fixed in the future.
If you need a navbar with less than 3 items, please use the StandardNavbar widget
using the NavbarDecoration.navbarType: NavbarType.standard property.
"""),
super(key: key);