CustomSlidableAction constructor

const CustomSlidableAction({
  1. required SlidableActionCallback? onPressed,
  2. Key? key,
  3. int flex = 1,
  4. Color backgroundColor = Colors.grey,
  5. Color? foregroundColor,
  6. bool autoClose = true,
  7. IconData? icon,
  8. double spacing = 4,
  9. String? label,
  10. BorderRadius borderRadius = BorderRadius.zero,
  11. EdgeInsets? padding,
})

创建一个自定义滑动操作按钮

Implementation

const CustomSlidableAction({
  required this.onPressed,
  super.key,
  this.flex = 1,
  this.backgroundColor = Colors.grey,
  this.foregroundColor,
  this.autoClose = true,
  this.icon,
  this.spacing = 4,
  this.label,
  this.borderRadius = BorderRadius.zero,
  this.padding,
});