JuiDashedBorder constructor

const JuiDashedBorder({
  1. Key? key,
  2. Color? dashColor,
  3. double dashWidth = 2,
  4. double dashHeight = 1,
  5. double dashSpace = 2,
  6. double borderRadius = 8,
  7. required Widget child,
  8. VoidCallback? onTap,
})

创建一个 JuiDashedBorder 组件

  • dashColor:虚线颜色,默认为 JuiTheme.colors.primary
  • dashWidth:虚线的宽度,默认为 2
  • dashHeight:虚线的高度,默认为 1
  • dashSpace:虚线之间的间距,默认为 2
  • borderRadius:边框的圆角半径,默认为 8
  • child:需要包裹的子组件,必填。
  • onTap:点击边框时的回调(可选)。

Implementation

const JuiDashedBorder({
  Key? key,
  this.dashColor,
  this.dashWidth = 2,
  this.dashHeight = 1,
  this.dashSpace = 2,
  this.borderRadius = 8,
  required this.child,
  this.onTap,
}) : super(key: key);