GTFEmpty constructor

const GTFEmpty({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. String? icon,
  4. String? contentText,
  5. String? buttonText,
  6. int? contentMaxLines = 2,
  7. double buttonRadius = 4,
  8. double? contentFontSize = GTFFont.base,
  9. double? buttonFontSize = GTFFont.subBase,
  10. FontWeight? contentFontWeight = GTFFont.regular,
  11. FontWeight? buttonFontWeight = GTFFont.medium,
  12. EdgeInsets iconMargin = const EdgeInsets.only(top: 100),
  13. EdgeInsets contentPadding = const EdgeInsets.fromLTRB(60, 20, 60, 20),
  14. EdgeInsets buttonContentPadding = const EdgeInsets.fromLTRB(16, 5, 16, 5),
  15. Color? contentTextColor,
  16. Color? buttonTextColor = GTFColor.grey6,
  17. Color? buttonBackgroundColor,
})

Implementation

const GTFEmpty({
  Key? key,
  this.onPressed,
  this.icon,
  this.contentText,
  this.buttonText,
  this.contentMaxLines = 2,
  this.buttonRadius = 4,
  this.contentFontSize = GTFFont.base,
  this.buttonFontSize = GTFFont.subBase,
  this.contentFontWeight = GTFFont.regular,
  this.buttonFontWeight = GTFFont.medium,
  this.iconMargin = const EdgeInsets.only(top: 100),
  this.contentPadding = const EdgeInsets.fromLTRB(60, 20, 60, 20),
  this.buttonContentPadding = const EdgeInsets.fromLTRB(16, 5, 16, 5),
  this.contentTextColor,
  this.buttonTextColor = GTFColor.grey6,
  this.buttonBackgroundColor,
}) : super(key: key);