FloatingBottomNavigation class

Displays a controlled, floating row of navigation buttons.

Inheritance

Constructors

FloatingBottomNavigation({Key? key, required int selectedIndex, required ValueChanged<int> onSelected, List<FloatingNavigationItem>? items, Color backgroundColor = _navigationColor, Color iconColor = _navigationIconColor, double buttonSize = _navigationButtonSize, double gap = _navigationGap, double borderRadius = _navigationRadius, double iconSize = _navigationIconSize, double minimumBottomPadding = _navigationMinimumBottomPadding, bool useSafeArea = true})
Creates a navigation row.

Properties

backgroundColor Color
The button background color.
final
borderRadius double
The logical-pixel corner radius of each button.
final
buttonSize double
The logical-pixel width and height of each button.
final
gap double
The logical-pixel gap between adjacent buttons.
final
hashCode int
The hash code for this object.
no setterinherited
iconColor Color
The default color inherited by icons that do not specify one.
final
iconSize double
The logical-pixel default size inherited by icons that do not specify one.
final
items List<FloatingNavigationItem>?
The optional defensive copy of the items supplied to the constructor.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minimumBottomPadding double
The minimum logical-pixel space below the navigation row.
final
onSelected ValueChanged<int>
Called once with an item index after a successful tap.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIndex int
The externally controlled selected item index.
final
useSafeArea bool
Whether operating-system safe-area insets are applied on the bottom and sides.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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