TDNavBar constructor

const TDNavBar({
  1. Key? key,
  2. List<TDNavBarItem>? leftBarItems,
  3. List<TDNavBarItem>? rightBarItems,
  4. Widget? titleWidget,
  5. String? title,
  6. Color? titleColor,
  7. Font? titleFont,
  8. FontFamily? titleFontFamily,
  9. FontWeight? titleFontWeight = FontWeight.w500,
  10. bool centerTitle = true,
  11. double opacity = 1.0,
  12. Color? backgroundColor,
  13. double titleMargin = 16,
  14. EdgeInsetsGeometry? padding,
  15. double height = 44,
  16. bool screenAdaptation = true,
  17. bool useDefaultBack = true,
  18. VoidCallback? onBack,
  19. bool useBorderStyle = false,
  20. TDNavBarItemBorder? border,
  21. Widget? belowTitleWidget,
})

Implementation

const TDNavBar({
  Key? key,
  this.leftBarItems,
  this.rightBarItems,
  this.titleWidget,
  this.title,
  this.titleColor,
  this.titleFont,
  this.titleFontFamily,
  this.titleFontWeight = FontWeight.w500,
  this.centerTitle = true,
  this.opacity = 1.0,
  this.backgroundColor,
  this.titleMargin = 16,
  this.padding,
  this.height = 44,
  this.screenAdaptation = true,
  this.useDefaultBack = true,
  this.onBack,
  this.useBorderStyle = false,
  this.border,
  this.belowTitleWidget,
}) : super(key: key);