NavigationScreen constructor
const
NavigationScreen({
- Key? key,
- PylonBuilder? sidebarHeader,
- double? railRightPadding,
- int index = 0,
- double sidebarPrefixPadding = 8,
- double sidebarWidth = 250,
- double? railTopPadding,
- double? sidebarSpacing,
- bool? drawerTransformsBackdrop,
- ValueChanged<
int> ? onIndexChanged, - required List<
NavItem> tabs, - bool? endSide,
- NavigationType? type,
Constructs a NavigationScreen with required tabs and optional customizations.
The tabs list defines navigable sections via NavItem builders, with index
setting the initial active tab. Callbacks like onIndexChanged enable parent
coordination, while theme overrides (e.g., sidebarSpacing, railRightPadding)
allow layout tweaks. For custom UIs, provide customNavigationBuilder; otherwise,
defaults to NavigationType from ArcaneTheme. Supports drawer overlays with
drawerTransformsBackdrop for backdrop effects during Navigator interactions.
Implementation
const NavigationScreen(
{super.key,
this.sidebarHeader,
this.railRightPadding,
this.index = 0,
this.sidebarPrefixPadding = 8,
this.sidebarWidth = 250,
this.railTopPadding,
this.sidebarSpacing,
this.drawerTransformsBackdrop,
this.onIndexChanged,
this.sidebarFooter,
required this.tabs,
this.customNavigationBuilder,
this.endSide,
this.type});