EmptyComponent constructor

const EmptyComponent({
  1. Key? key,
  2. String title = 'Chưa có dữ liệu',
  3. String? subtitle = 'Keep up the good work!',
  4. String? imageUrl,
  5. double? width,
  6. double? height,
})

Creates an EmptyComponent widget.

Parameters:

  • title: The title text displayed below the image (defaults to 'Chưa có dữ liệu').
  • subtitle: Optional subtitle text displayed below the title (defaults to 'Keep up the good work!').
  • imageUrl: Path to the image asset (optional, uses default if not provided).
  • width: Width of the image in logical pixels (optional).
  • height: Height of the image in logical pixels (optional).

Implementation

const EmptyComponent({
  super.key,
  this.title = 'Chưa có dữ liệu',
  this.subtitle = 'Keep up the good work!',
  this.imageUrl,
  this.width,
  this.height,
});