VooNavigationTheme class

Theme configuration for navigation visual styling

Provides a simple, unified approach to styling navigation components.

Example:

VooNavigationTheme(
  surfaceColor: Colors.white,
  borderRadius: 12,
  elevation: 0,
)

Constructors

VooNavigationTheme({Color? surfaceColor, double borderRadius = 0, double elevation = 0, Color? borderColor, double borderWidth = 0, Color? indicatorColor, ShapeBorder? indicatorShape, Color? selectedItemColor, Color? unselectedItemColor, Duration animationDuration = const Duration(milliseconds: 200), Curve animationCurve = Curves.easeOutCubic})
Creates a navigation theme
const

Properties

animationCurve → Curve
Animation curve for transitions
final
animationDuration → Duration
Animation duration for transitions
final
borderColor → Color?
Border color (null = no border)
final
borderRadius → double
Border radius for containers
final
borderWidth → double
Border width
final
elevation → double
Elevation/shadow depth
final
hashCode → int
The hash code for this object.
no setteroverride
indicatorColor → Color?
Indicator color for selected items
final
indicatorShape → ShapeBorder?
Shape of the selection indicator
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedItemColor → Color?
Color for the selected navigation item (icon + label). When null, falls back to ColorScheme.primary.
final
surfaceColor → Color?
Surface/background color for the navigation
final
unselectedItemColor → Color?
Color for unselected navigation items. When null, falls back to ColorScheme.onSurfaceVariant.
final

Methods

copyWith({Color? surfaceColor, double? borderRadius, double? elevation, Color? borderColor, double? borderWidth, Color? indicatorColor, ShapeBorder? indicatorShape, Color? selectedItemColor, Color? unselectedItemColor, Duration? animationDuration, Curve? animationCurve}) → VooNavigationTheme
Creates a copy with the given fields replaced
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveBorderColor(BuildContext context) → Color?
Resolves the border color for the current theme
resolveIndicatorColor(BuildContext context) → Color
Resolves the indicator color for the current theme
resolveSelectedItemColor(BuildContext context) → Color
Resolves the selected item color for the current theme
resolveShadows(BuildContext context) → List<BoxShadow>
Generates box shadows based on elevation
resolveSurfaceColor(BuildContext context) → Color
Resolves the surface color for the current theme
resolveUnselectedItemColor(BuildContext context) → Color
Resolves the unselected item color for the current theme
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override