CircleBNB class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CircleBNB
- Annotations
Constructors
-
CircleBNB({Key? key, Size size = Size.zero, List<
Color> ? colorList, required double dragSpeed, required List<CircleBNBItem> items, required dynamic onChangeIndex(int index), int? linearItemCount = 3, bool showIconWhenSelected = true, bool showIconWhenUnselected = true, bool showTextWhenSelected = true, bool showTextWhenUnselected = true, Color? selectedIconColor, TextStyle? selectedTextStyle, Color? unselectedIconColor, TextStyle? unselectedTextStyle, Color? circularBackgroundColor, Color? linearBackgroundColor}) -
const
Properties
- circularBackgroundColor → Color?
-
The background color of the widget as a circular.
final
-
colorList
→ List<
Color> ? -
The list of colors for the background gradient. Must contain 4 colors.
final
- dragSpeed → double
-
The speed of the dragging animation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
CircleBNBItem> -
The list of items to be displayed in the navigation bar. Must contain at least 3 items.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- linearBackgroundColor → Color?
-
The background color of the widget as a linear.
final
- linearItemCount → int?
-
The number of items to display when
navigationStyleisNavigationStyle.linear. Must be an odd number between 3 and 5.final -
The style of the navigation bar. Can be
NavigationStyle.linearorNavigationStyle.circular.final - onChangeIndex → dynamic Function(int index)
-
A callback function that is called when the selected index changes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIconColor → Color?
-
The color of the selected item's icon.
final
- selectedTextStyle → TextStyle?
-
The text style for the selected item's label.
final
- showIconWhenSelected → bool
-
Whether to show the icon of the selected item.
final
- showIconWhenUnselected → bool
-
Whether to show the icons of unselected items.
final
- showTextWhenSelected → bool
-
Whether to show the text of the selected item.
final
- showTextWhenUnselected → bool
-
Whether to show the text of unselected items.
final
- size → Size
-
The size of the widget. If not provided, it will be calculated automatically.
final
- unselectedIconColor → Color?
-
The color of unselected items' icons.
final
- unselectedTextStyle → TextStyle?
-
The text style for unselected items' labels.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CircleBNB> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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