getEmptyView static method

Widget getEmptyView(
  1. BuildContext context, {
  2. Color? backgroundColor,
  3. Color? shadowColor,
  4. String? emptyIconUrl,
  5. String? emptyIconPackageName,
  6. String? emptyStateText,
  7. Color? emptyIconTint,
  8. TextStyle? emptyTextStyle,
})

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