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