OpenMobileNavigator constructor
const
OpenMobileNavigator({
- Key? key,
- required List<
OpenMobileNavigatorItem> items, - ValueChanged<
int> ? onTap, - int initialIndex = 0,
- Color primaryColor = Colors.blue,
- Color decorationColor = Colors.white,
- Color inactiveColor = Colors.grey,
Creates an OpenMobileNavigator with the given configuration.
items is the list of navigation items.
onTap is an optional callback for handling item taps.
initialIndex is the index of the initially selected item.
primaryColor is the color for the selected item.
decorationColor is the color for the background decoration.
inactiveColor is the color for the non-selected items.
Implementation
const OpenMobileNavigator({super.key,
required this.items,
this.onTap,
this.initialIndex = 0,
this.primaryColor = Colors.blue,
this.decorationColor = Colors.white,
this.inactiveColor = Colors.grey,
}) : assert(items.length >= 2);