compactEmptyState method

dynamic compactEmptyState(
  1. dynamic context,
  2. dynamic color
)

Implementation

Widget compactEmptyState(BuildContext context, Color color) {
  return Padding(
    padding: const EdgeInsets.symmetric(vertical: 30, horizontal: 12),
    child: Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Icon(Atlas.chats, color: color, size: 40),
        const SizedBox(width: 16),
        Column(
          children: [
            Text(
              L10n.of(context).commentEmptyStateTitle,
              style: Theme.of(
                context,
              ).textTheme.titleSmall?.copyWith(color: color),
            ),
            Text(
              L10n.of(context).commentEmptyStateAction,
              style: Theme.of(
                context,
              ).textTheme.labelLarge?.copyWith(color: color),
            ),
          ],
        ),
      ],
    ),
  );
}