EmptyPlaceholder constructor
const
EmptyPlaceholder({
- Key? key,
- Widget? iconWidget,
- IconData? icon,
- String? assetIcon,
- double? iconSize,
- Color? iconColor = Colors.black,
- String title = "Nothing Here",
- String subtitle = "Add some items to get started",
- String? buttonText,
- VoidCallback? onPressed,
- bool isRoundButton = true,
- Color? buttonColor,
- IconData buttonIcon = Icons.add,
- Widget? customButton,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- Color? backgroundColor,
- Color? borderColor,
- double? borderWidth,
- double iconWidgetSize = 60,
- 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),
});