FloatingNavigationBar class

Inheritance

Constructors

FloatingNavigationBar({Key? key, required List<NavBarItems> items, required ValueChanged<int> onChanged, double barHeight = 80.0, double? barWidth = 400.0, Color? iconColor, double? iconSize, TextStyle? textStyle, Color? backgroundColor, Color indicatorColor = Colors.black, double indicatorHeight = 5.0, double indicatorWidth = 8.0})
const

Properties

backgroundColor Color?
  • Background Color or floating navigation bar
  • final
    barHeight double
  • TO CHANGE THE HEIGHT OF NAVIGATION BAR
  • PREFERRED HEIGHT IS BETWEEN 80-100
  • final
    barWidth double?
  • TO CHANGE THE WIDTH OF NAVIGATION BAR
  • final
    hashCode int
    The hash code for this object.
    no setterinherited
    iconColor Color?
  • For changing nav items icon color
  • final
    iconSize double?
  • FOR CHANGING NAV ITEMS ICON SIZE
  • final
    indicatorColor Color
  • For Changing indicator color
  • ... height
  • ... width
  • final
    indicatorHeight double
    final
    indicatorWidth double
    final
    items List<NavBarItems>
  • List to tabs to display
  • final
    key Key?
    Controls how one widget replaces another widget in the tree.
    finalinherited
    onChanged ValueChanged<int>
    final
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    textStyle TextStyle?
    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
    onPressed(int index) → void
  • FOR CHANGING NAVIGATION BAR INDEX
  • 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

    Static Properties

    notifyIndex ValueNotifier<int>
    ! THIS WILL IDENTITFY WHICH TAB IS CURRENTLY ACTIVE ! USING THIS TO SHOW AND HIDE TAB INDICATOR
    getter/setter pair