getEmptyView static method
Implementation
static Widget getEmptyView(BuildContext context,
{Color? backgroundColor,
Color? shadowColor,
String? emptyIconUrl,
String? emptyIconPackageName,
String? emptyStateText,
Color? emptyIconTint,
TextStyle? emptyTextStyle}) {
return Chip(
backgroundColor: backgroundColor,
shadowColor: shadowColor,
label: Row(
children: [
Image.asset(
emptyIconUrl ?? AssetConstants.repliesEmpty,
package: emptyIconPackageName ?? UIConstants.packageName,
color: emptyIconTint,
),
const SizedBox(
width: 10,
),
Text(
emptyStateText ?? Translations.of(context).noMessagesFound,
style: emptyTextStyle,
),
],
),
);
}