NavigationBarTheme class
Theme data for customizing NavigationBar widget appearance.
This class defines the visual and behavioral properties that can be applied to NavigationBar widgets, including background colors, alignment, spacing, label presentation, and padding. These properties can be set at the theme level to provide consistent styling across the application.
- Inheritance
-
- Object
- ComponentThemeData
- NavigationBarTheme
Constructors
-
Creates a NavigationBarTheme.
const
Properties
- alignment → NavigationBarAlignment?
-
Alignment of navigation items.
final
- backgroundColor → Color?
-
Background color of the navigation bar.
final
- direction → Axis?
-
Layout direction (horizontal or vertical).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- labelPosition → NavigationLabelPosition?
-
Position of labels relative to icons.
final
- labelSize → NavigationLabelSize?
-
Size variant for labels.
final
- labelType → NavigationLabelType?
-
Type of label display (e.g., always show, hide, etc.).
final
- padding → EdgeInsetsGeometry?
-
Internal padding of the navigation bar.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spacing → double?
-
Spacing between navigation items.
final
Methods
-
copyWith(
{ValueGetter< Color?> ? backgroundColor, ValueGetter<NavigationBarAlignment?> ? alignment, ValueGetter<Axis?> ? direction, ValueGetter<double?> ? spacing, ValueGetter<NavigationLabelType?> ? labelType, ValueGetter<NavigationLabelPosition?> ? labelPosition, ValueGetter<NavigationLabelSize?> ? labelSize, ValueGetter<EdgeInsetsGeometry?> ? padding}) → NavigationBarTheme - Creates a copy of this theme with the given fields replaced.
-
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