searchHeader function

Widget searchHeader(
  1. String? type,
  2. String count,
  3. BuildContext context
)

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))
    ])),
  );
}