CNav class
- Inheritance
Constructors
Properties
- backgroundColor → Color
-
Background color of
CustomNavigationBar
final - blurEffect → bool
-
bool to control if navigation bar use blur effect
default is
false
final - borderRadius → Radius
-
Border radius for navigation bar
final
- bubbleCurve → Curve
-
animation curve of bubble effect
final
- currentIndex → int
-
current index of navigation bar.
final
- elevation → double
-
The z-coordinate of this
CustomNavigationBar
.final - floatingPadding → double
-
boolean that control if navigation bar perform floating.
default is false
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconSize → double
-
size of icon.
also represent the max radius of bubble effect animation.
final
- isFloating → bool
-
boolean that control if navigation bar perform floating.
default is false
final
-
items
→ List<
CNavItem> -
Item data in
CustomNavigationBarItem
final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsetsGeometry?
-
Margin and Padding Properties.
final
- onTap → dynamic Function(int)
-
callback function when item tapped
final
- opacity → double
-
When blurEffect is
true
, control the opacity of navigation bar default is0.8
final - padding → EdgeInsetsGeometry?
-
Margin and Padding Properties.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaleCurve → Curve
-
animation curve of scale effect
final
- scaleFactor → double
-
scale factor for the icon scale animation effect.
default is
0.2
.final - selectedColor → Color?
-
Color when
CustomNavigationBarItem
is selected.final - strokeColor → Color
-
stroke color.
default is Colors.blueAccent.
final
- unSelectedColor → Color?
-
Color when
CustomNavigationBarItem
is not selected.final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _CNavState -
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}) → 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