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: MediaQuery.of(context).size.width,
    padding: const EdgeInsets.all(8),
    color: MirrorflyUikit.getTheme?.scaffoldColor ?? dividerColor,
    child: Text.rich(
        TextSpan(text: type, children: [
          TextSpan(
            text: count.isNotEmpty ? " ($count)" : Constants.emptyString,
          )
        ]),
        style: TextStyle(
            fontWeight: FontWeight.bold,
            color: MirrorflyUikit.getTheme?.textPrimaryColor)),
  );
}