buildTableEmptyState function

Widget buildTableEmptyState(
  1. ColorScheme theme
)

Implementation

Widget buildTableEmptyState(ColorScheme theme) {
  return Center(
    child: Padding(
      padding: const EdgeInsets.all(32),
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          Icon(Icons.inbox_outlined, size: 64, color: theme.onSurfaceVariant),
          const SizedBox(height: 16),
          Text('No data available', style: TextStyle(fontSize: 18, fontWeight: FontWeight.w500, color: theme.onSurface)),
          const SizedBox(height: 8),
          Text('There are no items to display at the moment.',
              style: TextStyle(fontSize: 14, color: theme.onSurfaceVariant), textAlign: TextAlign.center),
        ],
      ),
    ),
  );
}