render method
Implementation
@override
Widget render(BuildContext context, AntdNavBarStyle style) {
var leftRow = AntdRow(
style: style.backRowStyle,
children: [
if (backIcon != null)
AntdBox(
options: const AntdTapOptions(alwaysReceiveTap: true),
onTap: onBack,
child: AntdIconWrap(
style: style.backIconStyle,
child: backIcon,
),
),
if (back != null)
AntdBox(
onTap: onBack,
style: style.backStyle,
child: back,
),
if (left != null) left!
],
);
return AntdBox(
onTap: onTap,
innerSafeArea: safeArea,
style: style.bodyStyle,
child: AntdRow(
style: style.bodyRowStyle,
children: [
leftRow,
AntdColumn(
style: style.titleColumnStyle,
children: [
if (title != null)
AntdBox(
style: style.titleStyle,
child: title,
),
if (subTitle != null)
AntdBox(
style: style.subTitleStyle,
child: subTitle,
),
],
),
style.rightExpanded == true
? Expanded(child: (right ?? const AntdBox()))
: (right ?? const AntdBox())
],
),
);
}