CustomSlidableAction constructor
const
CustomSlidableAction({
- required SlidableActionCallback? onPressed,
- Key? key,
- int flex = 1,
- Color backgroundColor = Colors.grey,
- Color? foregroundColor,
- bool autoClose = true,
- IconData? icon,
- double spacing = 4,
- String? label,
- BorderRadius borderRadius = BorderRadius.zero,
- 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,
});