NavbarDecoration class
Decoration class for the navbar NavbarType.standard if you are using Navbartype.notched then use NotchedDecoration instead.
- Implementers
Constructors
Properties
- backgroundColor → Color?
-
The backgroundColor of the Navbar
final
- borderRadius → BorderRadius?
-
BorderRadius for floating navbar
final
- elevation → double?
-
The elevation shadown on the edges of bottomnavigationbar
final
- enableFeedback → bool?
-
haptic feedback when the item is selected
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double?
-
final
- indicatorColor → Color?
-
final
- indicatorShape → ShapeBorder?
-
final
- isExtended → bool
-
Defines whether the Navbar is extended in Desktop mode
defaults to false
final
- labelBehavior → NavigationDestinationLabelBehavior?
-
Specifies when each NavigationDestination's label should appear.
This is used to determine the behavior of NavigationBar's destinations
final
- margin → EdgeInsetsGeometry?
-
margin for floating navbar
defaults to EdgeInsets.symmetric(horizontal: 48.0, vertical: 20),
final
- minExtendedWidth → double
-
Width when
isExtended
is True, The default value is 256.final - minWidth → double
-
The smallest possible width for the navbar when
NavbarRouter.isDesktop
is True, this width is regardless of the navbar's icon or label size. The default is 72.final -
The type of the Navbar to be displayed
BottomNavigationBarType.fixed or BottomNavigationBarType.shifting
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIconColor → Color?
-
The icon color of the selected NavbarItem
if NavbarItem.selectedIcon is specified then this is ignored
final
- selectedIconTheme → IconThemeData?
-
iconTheme for the selected icon
final
- selectedLabelTextStyle → TextStyle?
-
the text style of the selected label
final
- showSelectedLabels → bool?
-
whether or not to show the selected label text
final
- showUnselectedLabels → bool
-
Whether or not to show the unselected label text
When in DesktopMode, either isExtended is False or showUnselectedLabels is True
final
- unselectedIconColor → Color?
-
The color of the unselected item icon
final
- unselectedIconTheme → IconThemeData?
-
iconTheme for the unselected icon
final
- unselectedItemColor → Color?
-
The color of the unselected item
final
- unselectedLabelColor → Color?
-
The color of the unselected label text
final
- unselectedLabelTextStyle → TextStyle?
-
the text style of the unselected labels
final
Methods
-
copyWith(
{Color? backgroundColor, BorderRadius? borderRadius, bool? isExtended, Color? unselectedItemColor, double? elevation, double? height, double? minWidth, double? minExtendedWidth, Color? unselectedIconColor, bool? showUnselectedLabels, Color? unselectedLabelColor, bool? showSelectedLabels, bool? enableFeedback, Color? indicatorColor, ShapeBorder? indicatorShape, Color? selectedIconColor, EdgeInsetsGeometry? margin, NavigationDestinationLabelBehavior? labelBehavior, TextStyle? selectedLabelTextStyle, TextStyle? unselectedLabelTextStyle, IconThemeData? selectedIconTheme, IconThemeData? unselectedIconTheme}) → NavbarDecoration -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override