EmptyPlaceholder constructor

const EmptyPlaceholder({
  1. Key? key,
  2. Widget? iconWidget,
  3. IconData? icon,
  4. String? assetIcon,
  5. double? iconSize,
  6. Color? iconColor = Colors.black,
  7. String title = "Nothing Here",
  8. String subtitle = "Add some items to get started",
  9. String? buttonText,
  10. VoidCallback? onPressed,
  11. bool isRoundButton = true,
  12. Color? buttonColor,
  13. IconData buttonIcon = Icons.add,
  14. Widget? customButton,
  15. TextStyle? titleStyle,
  16. TextStyle? subtitleStyle,
  17. Color? backgroundColor,
  18. Color? borderColor,
  19. double? borderWidth,
  20. double iconWidgetSize = 60,
  21. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 24),
})

Implementation

const EmptyPlaceholder({
  super.key,
  this.iconWidget,
  this.icon,
  this.assetIcon,
  this.iconSize,
  this.iconColor = Colors.black,
  this.title = "Nothing Here",
  this.subtitle = "Add some items to get started",
  this.buttonText,
  this.onPressed,
  this.isRoundButton = true,
  this.buttonColor,
  this.buttonIcon = Icons.add,
  this.customButton,
  this.titleStyle,
  this.subtitleStyle,
  this.backgroundColor,
  this.borderColor,
  this.borderWidth,
  this.iconWidgetSize = 60,
  this.padding = const EdgeInsets.symmetric(horizontal: 24),
});