AbnormalStateWidget constructor

AbnormalStateWidget({
  1. Key? key,
  2. Image? img,
  3. String? title,
  4. String? content,
  5. OperateAreaType operateAreaType = OperateAreaType.textButton,
  6. List<String>? operateTexts,
  7. EmptyStatusIndexedActionClickCallback? action,
  8. bool enablePageTap = false,
  9. double? topOffset,
  10. Color bgColor = Colors.white,
  11. bool isCenterVertical = false,
  12. double topPercent = 0.08,
  13. AbnormalStateConfig? themeData,
})

Implementation

AbnormalStateWidget({
  super.key,
  this.img,
  this.title,
  this.content,
  this.operateAreaType = OperateAreaType.textButton,
  this.operateTexts,
  this.action,
  this.enablePageTap = false,
  this.topOffset,
  this.bgColor = Colors.white,
  this.isCenterVertical = false,
  this.topPercent = 0.08,
  this.themeData,
}) {
  themeData ??= AbnormalStateConfig();
  themeData = BaseThemeConfig.instance
      .getConfig(configId: themeData!.configId)
      .abnormalStateConfig
      .merge(themeData);
}