build method
Widget
build(
- BuildContext context,
- bool selected,
- VoidCallback? onPressed, {
- PaneDisplayMode? displayMode,
- bool showTextOnTop = true,
- ValueChanged<
PaneItem> ? onItemPressed, - bool? autofocus,
- int? itemIndex,
override
Used to construct the pane items all around NavigationView. You can customize how the pane items should look like by overriding this method
Implementation
@override
Widget build(
BuildContext context,
bool selected,
VoidCallback? onPressed, {
PaneDisplayMode? displayMode,
bool showTextOnTop = true,
ValueChanged<PaneItem>? onItemPressed,
bool? autofocus,
int? itemIndex,
}) {
final maybeBody = _InheritedNavigationView.maybeOf(context);
final mode = displayMode ??
maybeBody?.displayMode ??
maybeBody?.pane?.displayMode ??
PaneDisplayMode.minimal;
return KeyedSubtree(
key: key,
child: _PaneItemExpander(
key: expanderKey,
item: this,
items: items,
displayMode: mode,
showTextOnTop: showTextOnTop,
selected: selected,
onPressed: onPressed,
onItemPressed: onItemPressed,
initiallyExpanded: initiallyExpanded,
),
);
}