CNNavigationBar constructor
const
CNNavigationBar({
- Key? key,
- List<
CNNavigationBarAction> ? leading, - String? title,
- double? titleSize,
- VoidCallback? onTitlePressed,
- List<
CNNavigationBarAction> ? trailing, - bool largeTitle = false,
- bool transparent = true,
- Color? tint,
- double? height,
- List<
String> ? segmentedControlLabels, - int? segmentedControlSelectedIndex,
- ValueChanged<
int> ? onSegmentedControlValueChanged, - double? segmentedControlHeight,
- double? segmentedControlLabelSize,
- Color? segmentedControlTint,
Creates a native translucent navigation bar.
Implementation
const CNNavigationBar({
super.key,
this.leading,
this.title,
this.titleSize,
this.onTitlePressed,
this.trailing,
this.largeTitle = false,
this.transparent = true,
this.tint,
this.height,
this.segmentedControlLabels,
this.segmentedControlSelectedIndex,
this.onSegmentedControlValueChanged,
this.segmentedControlHeight,
this.segmentedControlLabelSize,
this.segmentedControlTint,
}) : searchConfig = null,
scrollableContent = null,
_isSearchEnabled = false,
_isScrollable = false;