JuiNoContent constructor

const JuiNoContent({
  1. Key? key,
  2. double paddingTop = 130,
  3. String text = "暂无数据",
  4. required JuiNoContentType type,
  5. String? imagePath,
  6. double imageWidth = 180,
  7. double paddingBottom = 0,
})

创建一个 JuiNoContent 组件

  • paddingTop:顶部填充,默认为 130
  • text:显示的文本内容,默认为 "暂无数据"
  • type:空页面的类型,必填。
  • imagePath:自定义图片路径,仅在 JuiNoContentType.custom 类型下使用。
  • imageWidth:图片的宽度,默认为 180
  • paddingBottom:底部填充,默认为 0

Implementation

const JuiNoContent({
  Key? key,
  this.paddingTop = 130,
  this.text = "暂无数据",
  required this.type,
  this.imagePath,
  this.imageWidth = 180,
  this.paddingBottom = 0,
}) : super(key: key);