BottomToNavRail class abstract

Typically, the size and other properties of the navigation item need to be customized. Therefore, we use an Icon instead of IconData to reduce the need for additional wrapping in the consumer code.

Furthermore, the color of the navigation items should be consistent across all items, using either the primary or secondary color,because it is clickable. To achieve this, you can pass the color through different parameters or edit the code here.

Since this code is used in different projects, and an app usually has only one navigation decorator, it is acceptable to edit the source code per project to avoid unnecessary methods and lengthy code.

Implementers

Constructors

BottomToNavRail()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addItem({required String label, required IconData icon, IconData? selectedIcon}) BottomToNavRail
Typically, the size and other properties of the navigation item need to be customized. Therefore, we use an Icon instead of IconData to reduce the need for additional wrapping in the consumer code.
addItems(List<NavigationItem> items) BottomToNavRail
addNavigationItem(NavigationItem item) BottomToNavRail
appBar(AppBar? appBar) BottomToNavRail
body(Widget body) BottomToNavRail
build(BuildContext context) Widget
floatingActionButton(FloatingActionButton? fab) BottomToNavRail
iconColor(Color color) BottomToNavRail
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onItemClicked(ValueChanged<int> callback) BottomToNavRail
selectedIndex(int index) BottomToNavRail
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited