TEmptyState constructor

const TEmptyState({
  1. Key? key,
  2. dynamic icon,
  3. Widget? image,
  4. String? title,
  5. Widget? titleWidget,
  6. String? description,
  7. Widget? descriptionWidget,
  8. Widget? action,
  9. Widget? secondaryAction,
  10. bool compact = false,
  11. EdgeInsetsGeometry padding = const EdgeInsets.all(32.0),
  12. Color? iconColor,
  13. Color? iconBackgroundColor,
  14. double? iconSize,
})

Creates a customizable empty state widget.

Implementation

const TEmptyState({
  super.key,
  this.icon,
  this.image,
  this.title,
  this.titleWidget,
  this.description,
  this.descriptionWidget,
  this.action,
  this.secondaryAction,
  this.compact = false,
  this.padding = const EdgeInsets.all(32.0),
  this.iconColor,
  this.iconBackgroundColor,
  this.iconSize,
});