UITopNavigationBar constructor
const
UITopNavigationBar({
- Key? key,
- String? indexID,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8),
- double height = 40,
- required List<
UITopNavigationBarItem> items, - NavigatorController? controller,
- int initialIndex = 0,
- bool disableOnTapWhenInitialIndex = true,
- Color? fixedColor,
- Color? backgroundColor,
- Color? selectedItemColor,
- Color? unselectedItemColor,
- Color? selectedItemTextColor,
- Color? unselectedItemTextColor,
- bool showSelectedLabels = true,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 4),
Wrapper for BottomNavigationBar.
Implementation
const UITopNavigationBar({
Key? key,
this.indexID,
this.padding = const EdgeInsets.all(8),
this.height = 40,
required this.items,
this.controller,
this.initialIndex = 0,
this.disableOnTapWhenInitialIndex = true,
this.fixedColor,
// this.routeObserver,
this.backgroundColor,
this.selectedItemColor,
this.unselectedItemColor,
this.selectedItemTextColor,
this.unselectedItemTextColor,
this.showSelectedLabels = true,
this.contentPadding = const EdgeInsets.symmetric(horizontal: 4),
}) : super(key: key);