buildHd method
Implementation
Widget buildHd(BuildContext context) {
final theme = Theme.of(context);
final hds = <Widget>[];
final titleChidren = <Widget>[];
final titles = Column(
// mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: titleChidren,
);
if (title != null) {
titleChidren.add(
Text(
title ?? "",
style: TextStyle(
fontSize: titleSize ?? 14,
color: titleColor ?? theme.cardTheme.color,
),
),
);
}
if (subtitle != null) {
titleChidren.add(
Text(
subtitle ?? "",
style: TextStyle(
fontSize: subtitleSize ?? 12,
color: subtitleColor ?? theme.hintColor,
),
),
);
}
if (titleChidren.isNotEmpty) {
hds.add(titles);
}
return titleWidget ??
Container(
padding: hdPadding ?? const EdgeInsets.all(8),
color: hdBgColor ?? Colors.transparent,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
children: hds,
),
Row(
children: actions ?? [],
)
],
),
);
}