VooContentAreaConfig class
Configures the body content area (the right-hand region next to the nav rail/drawer on desktop).
Replaces the three contentAreaMargin / contentAreaBorderRadius /
contentAreaBackgroundColor fields on VooNavigationConfig, which
were removed in 2.0.
Usage:
VooNavigationConfig(
...,
contentArea: VooContentAreaConfig(
margin: EdgeInsets.only(top: 8),
borderRadius: BorderRadius.only(topLeft: Radius.circular(12)),
),
)
Pass null (the default) to use the scaffold's built-in content-area
defaults — 8px top margin + 12px top-left radius to visually separate
the content from the nav surface.
- Annotations
Constructors
- VooContentAreaConfig({EdgeInsets? margin, BorderRadius? borderRadius, Color? backgroundColor})
-
const
Properties
- backgroundColor → Color?
-
Background color of the content area. When null, falls back to
ColorScheme.surface.final - borderRadius → BorderRadius?
-
Border radius applied to the content area. Default is a 12px top-left
corner so the content area visually "sits inside" the scaffold.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- margin → EdgeInsets?
-
Margin applied to the content area. Default is
EdgeInsets.only(top: 8).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{EdgeInsets? margin, BorderRadius? borderRadius, Color? backgroundColor}) → VooContentAreaConfig -
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.
inherited