FloatingNavigationBar class
Constructors
-
FloatingNavigationBar({Key? key, required List<FloatingNavigationItem> items, required int selectedIndex, required dynamic onTap(int index), double bottomMargin = 15, double elevation = 5, EdgeInsets padding = const EdgeInsets.only(right: 14, left: 14, top: 10, bottom: 2), Duration duration = const Duration(milliseconds: 300), Curve? curves, BorderRadius? borderRadius, Color? backgroundColor})
-
Properties
-
backgroundColor
↔ Color?
-
You can change the navigationbar color, but default color follows at the 'ThemeData.ColorScheme.SurfaceColor'
getter/setter pair
-
borderRadius
↔ BorderRadius?
-
Decide how much flexion you want to give to the corner.
getter/setter pair
-
bottomMargin
↔ double
-
A double that determines how far it is from the bottom
getter/setter pair
-
curves
↔ Curve?
-
The Curve of item movement
getter/setter pair
-
duration
↔ Duration
-
Set up how fast movement of Cursor
getter/setter pair
-
elevation
↔ double
-
Determines how much evocation effect you want to add.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
items
↔ List<FloatingNavigationItem>
-
It is items what you want to add
getter/setter pair
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onTap
↔ dynamic Function(int index)
-
You can take what is current index when you tap navigation item
getter/setter pair
-
padding
↔ EdgeInsets
-
Decide the padding you want to put inside of NavigationBar
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedIndex
↔ int
-
getter/setter pair