TEmptyState.compact constructor

const TEmptyState.compact({
  1. Key? key,
  2. dynamic icon = Icons.inbox_outlined,
  3. String message = 'No items found',
  4. Widget? action,
  5. Color? iconColor,
  6. Color? iconBackgroundColor,
  7. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
})

Creates a compact empty state for small cards, popovers, or table cells.

Implementation

const TEmptyState.compact({
  super.key,
  this.icon = Icons.inbox_outlined,
  String message = 'No items found',
  this.action,
  this.iconColor,
  this.iconBackgroundColor,
  this.padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
})  : title = null,
      titleWidget = null,
      description = message,
      descriptionWidget = null,
      secondaryAction = null,
      image = null,
      compact = true,
      iconSize = 20.0;