CNNavigationBar constructor

const CNNavigationBar({
  1. Key? key,
  2. List<CNNavigationBarAction>? leading,
  3. String? title,
  4. double? titleSize,
  5. VoidCallback? onTitlePressed,
  6. List<CNNavigationBarAction>? trailing,
  7. bool largeTitle = false,
  8. bool transparent = true,
  9. Color? tint,
  10. double? height,
  11. List<String>? segmentedControlLabels,
  12. int? segmentedControlSelectedIndex,
  13. ValueChanged<int>? onSegmentedControlValueChanged,
  14. double? segmentedControlHeight,
  15. double? segmentedControlLabelSize,
  16. 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;