TDNavBar constructor
const
TDNavBar({
- Key? key,
- List<
TDNavBarItem> ? leftBarItems, - List<
TDNavBarItem> ? rightBarItems, - Widget? titleWidget,
- String? title,
- Color? titleColor,
- Font? titleFont,
- FontFamily? titleFontFamily,
- FontWeight? titleFontWeight = FontWeight.w500,
- bool centerTitle = true,
- double opacity = 1.0,
- Color? backgroundColor,
- double titleMargin = 16,
- EdgeInsetsGeometry? padding,
- double height = 44,
- bool screenAdaptation = true,
- bool useDefaultBack = true,
- VoidCallback? onBack,
- bool useBorderStyle = false,
- TDNavBarItemBorder? border,
- 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);