searchHeader function
Implementation
Widget searchHeader(String? type, String count, BuildContext context) {
return Container(
width: NavUtils.size.width,
padding: const EdgeInsets.all(8),
color: dividerColor,
child: Text.rich(TextSpan(text: type, children: [
TextSpan(
text: count.isNotEmpty ? " ($count)" : "",
style: const TextStyle(fontWeight: FontWeight.bold))
])),
);
}