build method
Implementation
Widget build(BuildContext context) {
assert(debugCheckHasFluentTheme(context));
final theme = NavigationPaneTheme.of(context);
final view = _InheritedNavigationView.of(context);
return KeyedSubtree(
key: key,
child: Container(
// key: itemKey,
constraints: const BoxConstraints(minHeight: kPaneItemHeaderMinHeight),
padding: (theme.iconPadding ?? EdgeInsets.zero).add(
view.displayMode == PaneDisplayMode.top
? EdgeInsets.zero
: theme.headerPadding ?? EdgeInsets.zero,
),
child: DefaultTextStyle.merge(
style: theme.itemHeaderTextStyle,
softWrap: false,
maxLines: 1,
overflow: TextOverflow.fade,
textAlign: view.displayMode == PaneDisplayMode.top
? TextAlign.center
: TextAlign.left,
child: header,
),
),
);
}